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


at 10:22 PM Anonymous said...

One good resource for point of sale software and many more free software alternatives is
Yes it is my site and I would love for you to drop by for a second. From there you will have free access to several of my products such as The Marketing Toolbar (which is goldmine of information on how to do things quickly and on the cheap, thus saving you time and money).
Also for webmasters I have created Webmaster Wizards, which will help you with almost every aspect of putting code on your site from things such as legal and privacy disclaimers to popunders. I have so much content and free software there I could fill up this whole blog, so check it out Thanks, Sincerely Rob Rudd

at 6:08 PM Jessy said...

I really liked the info on your site about Msdn - nice work. I've just started my own Msdn Secrets blog and would really appreciate you stopping by

at 12:11 AM Anonymous said...

Help me Dude, I'm lost.

I was searching for Elvis and somehow ended up in your blog, but you know I'm sure I saw Elvis in the supermarket yesterday.

No honest really, he was right there in front of me, next to the steaks singing "Love me Tender".

He said to me (his lip was only slightly curled) "Boy, you need to get yourself a shiny, new plasmatv to go with that blue suede sofa of yours.

But Elvis said I, In the Ghetto nobody has a plasma tv .

Dude I'm All Shook Up said Elvis. I think I'll have me another cheeseburger then I'm gonna go home and ask Michael Jackson to come round and watch that waaaay cool surfing scene in Apocalypse Now on my new plasma tv .

And then he just walked out of the supermarket singing. . .

"You give me love and consolation,
You give me strength to carry on "

Strange day or what? :-)

at 10:28 PM Anonymous said...

Create any type of website with the ease of use of a simple word processor!scheduling softwarescheduling software

at 9:13 AM Plasma TElevision Center said...

Hey, you have a great blog here! I'm definitely going to bookmark you!

I have a Plasma Television site/blog. It pretty much covers Plasma Television related stuff.

Come and check it out if you get time :-)

at 4:11 PM Anonymous said...

Want to register better domains with better keywords? Want to host the sites better as well? Check out first entry!

at 4:49 AM Anonymous said...

If you operate an affiliate program, this quick and easy solution can help your affiliates sell more of your productssoftwaresoftware

at 8:28 AM Anonymous said...


at 12:50 PM loaded with money said...

Do I have good Blog news for you! Now that I have bookmarked you can go to
earn lots and see how I can help you to earn a lot more than average! It is rewarding;-)

at 1:55 AM music4all said...

Yo David Dossot !

I found you while searching for music - I think music rocks! Right now I'm diggin into - Awesome piano mania!!

- Frank

PS: I hope you enjoy these sites:
piano blues piano blues
blues piano blues piano
boogie woogie boogie woogie
boogie woogie boogie woogie piano
piano secrets blues piano secrets
ltci long term care insurance
football football resources

at 5:46 PM iop6uy said...

Yo David Dossot !

I found "Test-Driven J2EE" while searching for mp3 - I dunno why your post came up, but your post did get my attention and interest!

Hey - Tonight, I'm being blown away by the "nuclear-meltdown, piano-mania, happy blues" piano music at And I can't stop smiling :)

I wonder if you like it as much as I do... Lemme know, ok?


- Greg
PS: I hope you enjoy these sites:
piano blues piano blues
blues piano blues piano
boogie woogie boogie woogie
boogie woogie boogie woogie piano
piano secrets blues piano secrets
ltci long term care insurance
football football resources

at 4:13 PM musiclover987123 said...

Hi David Dossot !

Nice post!

I really love that music means so much to so many. It brings us all together!

Right now, I'm rockin' out to the "nuclear-meltdown, piano-mania, happy blues" piano music at It smokes so righteously that I can't stop smiling :)

I wonder if you can feel it as much as I do...


- Sandy

PS: I hope you enjoy these sites:
piano blues piano blues
blues piano blues piano
boogie woogie boogie woogie
boogie woogie boogie woogie piano
piano secrets blues piano secrets
ltci long term care insurance
football football resources

at 7:23 AM Plasma TV Center said...

Hi, Thanks for your interesting blog. Keep up the great work! I also have a site & blog about plasma television sale
, please feel free to visit.

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 5:45 PM Online said...

Hi blogger:)

We congrats U for Ur great work...... We know Ur intentions are truthful, but this is also the first web blog We keep reading and also comment...... We hardly have time since We work all day long:)

start online business

at 2:43 AM Anonymous said...

Bizarre Secret Confesson Warning, these cofessions will shock you. Very disturbing Stuff. If you have something on your heart or something weighing on your soul then I saw this site and you should go over there anc confess. No one has to know it is you. It is private. I at your secret confession and I really felt a lot better afterward. You can confess ALL at

at 3:35 PM Handbag Express said...

Hello, just browsing around and thought I would peek at your blog also thought it would be a great opportunity to highly recommend both of these sites with spectacular deals. Grand Openings at **** for the ultmate handbag selections, and don't miss out on ****for Spectacular Grand Canyon Vacation Tours, you will agree the offers are Super incredible after visiting. Thanks and have a great day.

at 9:46 AM Anonymous said...

This isn't bad, but I wish there were more folks out there that could provide. Thanks.
-Piano Guru
learn to play piano

at 6:15 AM Anonymous said...

Hi, thanks for the informative blog! I'm a webmaster of sharp television

at 2:49 PM sdRay said...

My name is Ray and I just started a new blog about ladies confession. Its a place where you can chat about ladies confession confidentially. I hope you will come and check out Thanks for letting me post on your site.

at 8:28 PM Anonymous said...

Nice site!
[url=]My homepage[/url] | [url=]Cool site[/url]

at 8:31 PM Anonymous said...

Thank you!
My homepage | Please visit

at 8:31 PM Anonymous said...

Well done! |

at 10:54 PM Anonymous said...
Join me and my circle of friends at, an online social networking community that connects people from all over the world.

Meet new people, share photos, create or attend events, post free classifieds, send free e-cards, listen music, read blogs, upload videos, be part of a club, chat rooms, forum and much more!

See you around! Bring all your friends too!

at 6:09 PM Anonymous said...

Great blog on camp 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!! 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 2:11 AM Anonymous said...

Best flower for you girlfriend

soma or here phentermine

at 4:54 AM Buy Levitra said...

Great article! Thanks.

at 10:36 AM Phentermine said...

Thanks for interesting article.

at 12:33 AM Anonimous said...

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

at 2:21 AM viagra said...

As much as viagra has rescued the people from the cruel grip of erectile dysfunction it has also proved to be a curse to many because of wrong conception and wrong interpretation of its functioning. People buy viagra with the notion of having an extra erotic night without actually having the need to. Nowadays Viagra is also easily accessible and anyone can buy viagra online. In addition viagra online is more often than not cheap viagra i.e. a discounted version. People can easily get Viagra from the online pharmacies using wrong information. But in this way they will harm no one but their own selves, so it is always handy to have a clear conception of the drug one is taking.

at 6:15 AM Anonymous said...

teamsquirt pussy squirt girl squirt female squirt vagina squirt squirting squirting girls squirting pussy squirting orgasm squirting women girls squirting female squirting pussy squirting squirting orgasms squirting pussies women squirting female ejaculation pussy ejaculation female ejaculations xxx big boobs big tits gay sex anal anal sex porn fuck fucking milf lesbian sex lesbian porn blowjob blowjobs blow job pussy huge tits gay porn group sex gang bang sluts milfs lesbian orgy black pussy blow jobs oral sex teen porn shemale huge boobs cum shots cock sucking hardcore porn young porn hot sex hardcore fucking gangbang slut hardcore lesbian sex black booty black sex big ass cumshot cumshots handjob handjobs hand job shaved pussy teen pussy tight pussy young pussy shemales pussies

at 10:53 AM Anonymous said...

How do you think credit crunch affected porn?

interracial sex

at 10:33 PM Anonymous said...

free personals gay chat profiles uk [url=]gay military singles[/url] free dating in nottingham 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=]free facial cum shots[/url]
[url=]vaginal cum shots[/url]
[url=]blonde shots her pussy cum everywhere[/url]
[url=]vaginal cum shots[/url]
[url=]video cum shots[/url]
[url=]young male cum shots[/url]
[url=]free male cum shots[/url]
[url=]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=]cialis[/url] faulty heart rhythm strongest organic immune booster
stress management drugs [url=]diclofenac gel[/url] how possible is it to get pregnant after one cycle of clomid [url=]ems heart[/url]

at 2:38 PM Anonymous said...

import export used shoes adidasmartial arts shoes [url=]sig klein[/url] a gucci belt purse foster parents in laurens county dfcs [url=]first black designer[/url]

at 5:17 PM Anonymous said...

spitzer auto world amherst chevy volkswagen yugo automobile
[url=]volkswagen turbos[/url] automobile vibration [url=]dodge dakota front axle problem[/url]
mercedes 1995 e320 amp stereo
[url=]companies that give small cash loans for auto titles in ohio[/url] akron automobile club [url=]classic bentley automobiles[/url]
volkswagen beetle 1977 value
[url=]parts for 1971 volkswagen bus[/url] automobile accidents us statistics [url=]ohio auto salvage titles[/url]

at 12:53 AM Anonymous said...

sexy lesbian anal
[url=]myspace christmas graphics sexy[/url] evangailon hentai [url=]lolita masturbating torrent[/url]
fuchs lubricants co
[url=]animation porn movies[/url] dildo ladies [url=]free inuyasha hentai games[/url]
nurses sexy photos
[url=]laure manaudou sexy video[/url] lucky charms cereal adult t shirt [url=]massive cock mature[/url]
japan sexy model
[url=]large custom made realistic dildo[/url] hothouse porn [url=]viper gts hentai clip[/url]

at 7:05 AM Anonymous said...

score florida adult film
[url=]amateur hidden sex in hotel[/url] fox tail anal plug [url=]shemale henti[/url]
sexy adult fairytales
[url=]french amateur group sex[/url] adult riding camps us [url=]overextended adult children[/url]
vaginal and anal vibrator
[url=]shirley adult education centre[/url] anal bondage force [url=]babe oral[/url]
latex anal sex
[url=]mos adult[/url] meeting people who like porn [url=]interracial bbw dvds[/url]

at 5:38 AM Anonymous said...

quilt designer ii sewing machine price grees fashion [url=]fitness equipment designers in northeast ohio[/url] las vegas comedy shoes designer rooms [url=]talbot clothes[/url]

at 10:20 PM Anonymous said...

nair penis [url=]zebeta[/url] muscle tech hydroxycut hardcore
womens health news [url=]myambutol[/url] wholesale pills [url= ]bigelow tea community challenge fairfield [/url] pennsylvania medical mistake
pharmacy benefit purchasing alliance in puerto rico [url=]ayurslim[/url] evolution of modern medicine william osher
dental crowns [url=]minocycline[/url] causes of borderline blood sugar [url= ]big canoe smoke signals [/url] health insurance mandates new hampshire

at 12:15 PM Anonymous said...
[url=]tricare retail pharmacy[/url] compare cialis viagra and levitra
drug news article
[url=]cause of erectile dysfunction[/url] frank lucas drugs
drug and alcohol rehab in louisville kentucky
[url=]drew barrymore and drug abuse[/url] is alochol a drug causes and effest of drug abuse in campuses

at 7:17 AM Anonymous said...

seneca casino in niagra falls georgia state lottery holiday raffle
[url=]big game lottery numbers[/url] tlc texas lottery [url=]oregon keno or bingo for real money[/url]
new york state gambling laws update 2008
[url=]vietnam lottery system[/url] idaho lottery results [url=]the number of slots on an american roulette wheel[/url]
atlantic bingo bingo supplies [url=]golf betting odds[/url]

at 8:10 PM Anonymous said...

compare yves saint laurent mascara volume no eff faux cils gay nineties fashion [url=]kids athletic shoes[/url] zulu clothes computer design fashion software [url=]cum on clothes[/url]

at 7:02 PM Anonymous said...
[url=]mcclellan pharmacy ma[/url] traditional medicine treating anaphylactic shock [url=]bad cholesterol soruces[/url]
cananda drugs for pets
[url=]wildlife rehabilitation drug dosage calculator[/url] buy levitra viagra online [url=]altace dosage[/url]
book drugs ang gangs
[url=]foreign drugstores online review[/url] european steroids pharmacy [url=]discount amlodipine norvasc[/url] raltegravir and food and drug interactions [url=]celadrin at rite aid[/url]

at 7:41 AM Anonymous said...

free movie active wallpapers [url=]love at first bite[/url] narrative essay serendepity movie newtown movie theaters
resident evil extinctionfull movie zip [url=]fanboys[/url] rent the movie soundtrack lost in space movie
long free asian fuck quicktime movie [url=]the trojan horse[/url] superbad movie free download
smoke movie [url=]confessions of an american bride[/url] music from drumline movie movie theatres in glenview illinois
movie converter v3 serial [url=]the last word[/url] niles movie theater mi movie criticism