Monday, March 14, 2005

How often have you asked yourself: "how can I test this" or "should I really test that"? Then concluded that testing of such or such component was impossible or useless, which left you with a bitter feeling of incompleteness?

Rejoice! Joe Rainsberger masterly addressed these questions today in a full-day tutorial during which he first demystified many prejudices about J2EE testing then presented how to implement these tests with in-depth programming sessions.

Here are a few tips in case you missed this cool presentation:

  • test only what makes sense to test (assume that J2EE vendors do their job on testing their part),
  • test everything that makes sense to test (do not assume that test blind spots are an option),
  • have your tests running fast enough so they can run often.
Okay, this is pretty general, so here are some more technical hints:
  • always program to interfaces so you have a chance to subsitute an implementation with another one,
  • follow the Hollywood Principle and avoid Service Locators when designing your application (this will increase the capacity to substitute an implementation with another one, while reducing overall dependencies between components and technologies),
  • when testing, use mock objects to replace complex infrastrutural components with implementations that act the same way,
  • Models, Views and Controllers can all be tested outside of a J2EE container, so test them all,
  • have your views produce XHTML so you can leverage XPath for testing them,
  • do not be afraid of the database: after all it is just a repository, you can mock-it up!
  • when testing messaging, use the simplest available implementations of a message call in Java, i.e. method calls.
Joe provided many more advices but I am still too overwhelmed to be able to write them all down! So I hope some of the audience members could post some more hints in the comments of this topic.

5:35 PM

27 comments:

at 8:28 AM Anonymous said...

sorry...

at 8:34 PM Anonymous said...

Discover How you Can Use Your Personal Power to Increase Your Subconscious Energy and Prosperity..Do You Want To Change Your Life... Do you need help in the following areas: Divorce , Divorce, Divorce, Divorce , Divorce , Divorce , and Divorce ... Then quit procrastinating and Become the person you want to be.. I am Glad that you let me post on your site.. My goal in life is to teach people how to succeed in life with simple goal setting and motivation techniques....

at 8:28 PM Anonymous said...

Nice site!
[url=http://dnfifgma.com/zedu/xxnn.html]My homepage[/url] | [url=http://igtthlty.com/ikmh/vkrd.html]Cool site[/url]

at 8:31 PM Anonymous said...

Thank you!
My homepage | Please visit

at 8:31 PM Anonymous said...

Well done!
http://dnfifgma.com/zedu/xxnn.html | http://bhfkmcgn.com/ercg/umwv.html

at 6:09 PM Anonymous said...

Great blog on camp currys.co.uk currysbrand id ppc. I've stumbled on a superb money making website. Linkreferral is free to join and drives traffic to your website in an inivitive way (the more sites you visit, the more links you get back to your website.)

I've only been a member of Linkreferral for aproximately 2 weeks but I have already seen the volume of people coming to my site double - if not treble.

Linkreferral is not only driving visitors to my website but as a result my affiliate sales income has doubled also.

I really cannot push this website enough. It is free and it is fantastic!! www.linkreferral.com is a must for money making opportunities online.

at 9:32 PM Anonymous said...

Good blog - very interesting!! Thought you might like some excellent advice on driving extra traffic to your website/blog - I'm into paint shop pro and to drive traffic to my website I was searching around the internet for absolutely ages looking for SEO tools to fire my site up the Google search engine, then I signed up free for this superb traffic gereating tool - I now have loads of hits to my websites/blogs and my site is shooting up the Google rankings quicker than ever before.

Consequently this can see your affiliate commissions shoot through the roof - meaning lots of extra money coming in for you and your family. Sign up now - it's free.
. Sorry if this information is of no use to you but seeing as you have the anonymous feature enabled I thought I should share this free bit of essential promotional advice with you and would hope you would do the same for me.

I hope the tool will serve you equally as well as it has me!!

Best of luck, cheers for now, dave.

at 9:40 PM Anonymous said...

.





Hi matey

I'm sure it was this blog I was reading a while back where someone was looking for an SEO tool for driving more traffic and get more hits for their website.

Anyway, I was speaking to a techi guy at work who gets to know all the latest stuff and he uses the free Link Referral Program.

His website on multi level marketing system amongst other stuff has seen traffic explode since he started using the Link Referral Program - consequently his affiliate sales commissions and business sales went through the roof PLUS his website increased in google ranking which was an added bonus!!

If anyone else has any good ideas for driving more traffic to blogs/websites then please share with your online business blog buddies. Ta ;-)










.

at 4:54 AM Anonymous said...

Great article! Thanks.

at 10:36 AM Anonymous said...

Thanks for interesting article.

at 12:33 AM Anonymous said...

Excellent website. Good work. Very useful. I will bookmark!

at 10:33 PM Anonymous said...

free personals gay chat profiles uk [url=http://loveepicentre.com/]gay military singles[/url] free dating in nottingham http://loveepicentre.com/ best city singles

at 11:59 AM Anonymous said...

She purred as he pulled out, rolling onto her side as he moved aside. Not so strange to be fucking Hyle, but where had the compulsion come from? His harsh words rode their storm, a garrote of meaning that made her gurgle. Didnt matter that only Lanthan was touching her. But she wasnt lashing out. The smile was still there. But then, they had time. Gala sat back, hands on Eyrhaens shoulders. He murmured into her hair, holding her as he rocked her. Id like it if we could start again. What do you think, Tyk? Yelping, she twisted aside to look at Nialdlye, who held her hands up, palms out. Her lips parted under the soft caress of his breath, but he didnt kiss her. He was on his elbow now, his lips a breath away from hers. At least, not that she was aware of. This was what it was supposed to be. She shrugged, sidestepping to lower herself to the edge of one of two couches. What if one of them had fathered a child? We arent exactly a monogamous society. Its so much more convenient.

at 12:10 AM Anonymous said...

Eager, driven, she pushed up to her knees and swung her leg over his hips. Given that theyd once been lovers, he would be more in tune to her feelings. Brevin gave thought to seeing his own mother but decided to visit his brother instead. The noise from the spectators filled the wideopen space, excitement building as oiled bodies grappled. He surrounded her but didnt help her.
[url=http://cumonshot.1sthost.org/index11.html]free facial cum shots[/url]
[url=http://cumonshot.1sthost.org/index12.html]vaginal cum shots[/url]
[url=http://cumonshot.1sthost.org/index13.html]blonde shots her pussy cum everywhere[/url]
[url=http://cumonshot.1sthost.org/index14.html]vaginal cum shots[/url]
[url=http://cumonshot.1sthost.org/index15.html]video cum shots[/url]
[url=http://cumonshot.1sthost.org/index16.html]young male cum shots[/url]
[url=http://cumonshot.1sthost.org/index17.html]free male cum shots[/url]
[url=http://cumonshot.1sthost.org/index18.html]free cum shots in ass[/url]

at 2:51 PM Anonymous said...

hot sex action videos

at 11:41 PM Anonymous said...

arterial blood gas fundamentals [url=http://usadrugstoretoday.com/products/cialis.htm]cialis[/url] faulty heart rhythm http://usadrugstoretoday.com/categories/hipnoterapia.htm strongest organic immune booster http://usadrugstoretoday.com/products/brand-amoxil.htm
stress management drugs [url=http://usadrugstoretoday.com/products/diclofenac-gel.htm]diclofenac gel[/url] how possible is it to get pregnant after one cycle of clomid [url=http://usadrugstoretoday.com/products/desyrel.htm]ems heart[/url]

at 2:38 PM Anonymous said...

import export used shoes http://topcitystyle.com/?action=products&product_id=1186 adidasmartial arts shoes [url=http://topcitystyle.com/family-guy-accessories-brand100.html]sig klein[/url] a gucci belt purse
http://topcitystyle.com/xl-sport-size6.html foster parents in laurens county dfcs [url=http://topcitystyle.com/d-amp-g-t-shirt-for-men-black-item2271.html]first black designer[/url]

at 5:17 PM Anonymous said...

spitzer auto world amherst chevy volkswagen http://carautonews.in/bike/bike-games-onlines yugo automobile
[url=http://carautonews.in/audi/audi-performance-tune]volkswagen turbos[/url] automobile vibration [url=http://carautonews.in/dodge-com/dodge-dakota-front-axle-problem]dodge dakota front axle problem[/url]
mercedes 1995 e320 amp stereo http://carautonews.in/dodge-com/merrick-dodge-ny
[url=http://carautonews.in/dodge-com/how-to-change-the-track-bar-on-a-1999-dodge-ram-4x4]companies that give small cash loans for auto titles in ohio[/url] akron automobile club [url=http://carautonews.in/automobiles/classic-bentley-automobiles]classic bentley automobiles[/url]
volkswagen beetle 1977 value http://carautonews.in/ford/engine-specs-for-ford-e-150-cargo-van
[url=http://carautonews.in/auto-co/auto-lug-wound-watch]parts for 1971 volkswagen bus[/url] automobile accidents us statistics [url=http://carautonews.in/auto-info/ohio-auto-salvage-titles]ohio auto salvage titles[/url]

at 12:53 AM Anonymous said...

sexy lesbian anal http://theporncollection.in/gay-porn/free-teen-gay-sex
[url=http://theporncollection.in/gay-love/buy-gay-movies]myspace christmas graphics sexy[/url] evangailon hentai [url=http://theporncollection.in/masturbating/lolita-masturbating-torrent]lolita masturbating torrent[/url]
fuchs lubricants co http://theporncollection.in/gay-boy/jessie-is-gay
[url=http://theporncollection.in/best-porn/completely-free-porn-movies-online]animation porn movies[/url] dildo ladies [url=http://theporncollection.in/hentai-sex/free-inuyasha-hentai-games]free inuyasha hentai games[/url]
nurses sexy photos http://theporncollection.in/porn-dvd/gay-porn-com
[url=http://theporncollection.in/porn-dvd/swingers-porn-free]laure manaudou sexy video[/url] lucky charms cereal adult t shirt [url=http://theporncollection.in/mature-xxx/massive-cock-mature]massive cock mature[/url]
japan sexy model http://theporncollection.in/gay-boy/free-local-gay-chat
[url=http://theporncollection.in/best-porn/porn-video-long-hardcore-free]large custom made realistic dildo[/url] hothouse porn [url=http://theporncollection.in/hentai-sex/viper-gts-hentai-clip]viper gts hentai clip[/url]

at 7:05 AM Anonymous said...

score florida adult film http://xwe.in/blowjob/teen-giving-blowjob
[url=http://xwe.in/oral/oral-sex-forums]amateur hidden sex in hotel[/url] fox tail anal plug [url=http://xwe.in/shemale/shemale-henti]shemale henti[/url]
sexy adult fairytales http://xwe.in/teen-ass/alicia-silverstone-ass
[url=http://xwe.in/adult-video/shelf-bra-adult]french amateur group sex[/url] adult riding camps us [url=http://xwe.in/adult-video/overextended-adult-children]overextended adult children[/url]
vaginal and anal vibrator http://xwe.in/toon/tinkerbell-toon-porn
[url=http://xwe.in/adult-video]shirley adult education centre[/url] anal bondage force [url=http://xwe.in/oral/babe-oral]babe oral[/url]
latex anal sex http://xwe.in/erotic-video/story-site-erotic-mf-blog-message
[url=http://xwe.in/fetish/stivaloni-fetish]mos adult[/url] meeting people who like porn [url=http://xwe.in/bbw/interracial-bbw-dvds]interracial bbw dvds[/url]

at 5:38 AM Anonymous said...

quilt designer ii sewing machine price http://www.thefashionhouse.us/white-grey-polo-shirts-color26.html grees fashion [url=http://www.thefashionhouse.us/?action=products&product_id=1760]fitness equipment designers in northeast ohio[/url] las vegas comedy shoes
http://www.thefashionhouse.us/cream-dresses-color68.html designer rooms [url=http://www.thefashionhouse.us/?action=products&product_id=2531]talbot clothes[/url]

at 10:20 PM Anonymous said...

nair penis [url=http://usadrugstoretoday.com/products/zebeta.htm]zebeta[/url] muscle tech hydroxycut hardcore http://usadrugstoretoday.com/products/vitaliq.htm
womens health news [url=http://usadrugstoretoday.com/products/myambutol.htm]myambutol[/url] wholesale pills [url=http://usadrugstoretoday.com/products/fincar.htm ]bigelow tea community challenge fairfield [/url] pennsylvania medical mistake
pharmacy benefit purchasing alliance in puerto rico [url=http://usadrugstoretoday.com/products/ayurslim.htm]ayurslim[/url] evolution of modern medicine william osher http://usadrugstoretoday.com/products/glucotrol-xl.htm
dental crowns [url=http://usadrugstoretoday.com/products/minocycline.htm]minocycline[/url] causes of borderline blood sugar [url=http://usadrugstoretoday.com/products/brand-tamiflu.htm ]big canoe smoke signals [/url] health insurance mandates new hampshire

at 12:15 PM Anonymous said...

http://xwp.in/amlodipine/amlodipine-stability
[url=http://xwp.in/anafranil/anafranil-and-premature-ejaculation]tricare retail pharmacy[/url] compare cialis viagra and levitra http://xwp.in/diclofenac/diclofenac-adverse-effects
drug news article http://xwp.in/anafranil/buspar-celexa-prozac-paxil-anafranil
[url=http://xwp.in/detrol/detrol-side-effects-of]cause of erectile dysfunction[/url] frank lucas drugs http://xwp.in/ceftin/ceftin-price
drug and alcohol rehab in louisville kentucky http://xwp.in/effexor/effexor-and-chemo-brain
[url=http://xwp.in/enhancement/enhancement-of-customer-management]drew barrymore and drug abuse[/url] is alochol a drug http://xwp.in/hyzaar/hyzaar-information causes and effest of drug abuse in campuses http://xwp.in/cefpodoxime/what-is-cefpodoxime-pro

at 7:17 AM Anonymous said...

seneca casino in niagra falls http://xwn.in/blackjack_gambling-bonuses-blackjack-strategies georgia state lottery holiday raffle
[url=http://xwn.in/poker-online_how-to-discard-poker-cards]big game lottery numbers[/url] tlc texas lottery [url=http://xwn.in/keno_oregon-keno-or-bingo-for-real-money]oregon keno or bingo for real money[/url]
new york state gambling laws update 2008 http://xwn.in/baccarat_baccarat-glass-crystal
[url=http://xwn.in/casino-playing-cards_power-t-playing-cards]vietnam lottery system[/url] idaho lottery results [url=http://xwn.in/slots_the-number-of-slots-on-an-american-roulette-wheel]the number of slots on an american roulette wheel[/url]
atlantic bingo http://xwn.in/bingo_bingo-in-western-massachuttess bingo supplies [url=http://xwn.in/betting_golf-betting-odds]golf betting odds[/url]

at 8:10 PM Anonymous said...

compare yves saint laurent mascara volume no eff faux cils http://topcitystyle.com/women-women-s-tops-type3.html gay nineties fashion [url=http://topcitystyle.com/multi-color-round-neck-color180.html]kids athletic shoes[/url] zulu clothes
http://topcitystyle.com/?action=products&product_id=2320 computer design fashion software [url=http://topcitystyle.com/white-on-sale-color4.html]cum on clothes[/url]

at 7:02 PM Anonymous said...

http://xpv.in/relafen/relafen-before-surgery
[url=http://xpv.in/cholesterol/zak-cholesterol-methods]mcclellan pharmacy ma[/url] traditional medicine treating anaphylactic shock [url=http://xpv.in/cholesterol/bad-cholesterol-soruces]bad cholesterol soruces[/url]
cananda drugs for pets http://xpv.in/ramipril/b-altace-b-ramipril
[url=http://xpv.in/ceftin/ceftin-dosing]wildlife rehabilitation drug dosage calculator[/url] buy levitra viagra online [url=http://xpv.in/altace/altace-dosage]altace dosage[/url]
book drugs ang gangs http://xpv.in/domperidone/domperidone-ratinidine
[url=http://xpv.in/pyridostigmine/pyridostigmine]foreign drugstores online review[/url] european steroids pharmacy [url=http://xpv.in/amlodipine/discount-amlodipine-norvasc]discount amlodipine norvasc[/url] raltegravir and food and drug interactions [url=http://xpv.in/celadrin/celadrin-at-rite-aid]celadrin at rite aid[/url]

at 7:41 AM Anonymous said...

free movie active wallpapers [url=http://moviestrawberry.com/films/film_love_at_first_bite/]love at first bite[/url] narrative essay serendepity movie http://moviestrawberry.com/films/film_hokuto_no_ken/ newtown movie theaters
resident evil extinctionfull movie zip [url=http://moviestrawberry.com/films/film_fanboys/]fanboys[/url] rent the movie soundtrack http://moviestrawberry.com/films/film_colossus_the_forbin_project/ lost in space movie
long free asian fuck quicktime movie [url=http://moviestrawberry.com/films/film_the_trojan_horse/]the trojan horse[/url] superbad movie free download
smoke movie [url=http://moviestrawberry.com/films/film_confessions_of_an_american_bride/]confessions of an american bride[/url] music from drumline movie http://moviestrawberry.com/countries/?page=135 movie theatres in glenview illinois
movie converter v3 serial [url=http://moviestrawberry.com/films/film_the_last_word/]the last word[/url] niles movie theater mi http://moviestrawberry.com/films/film_woodland_caf/ movie criticism