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

50 comments:

at 10:22 PM Anonymous said...

One good resource for point of sale software and many more free software alternatives is Software4YourSuccess.com
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...

sorry...

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 http://www.claycotton.com - Awesome piano mania!!

- Frank

PS: I hope you enjoy these sites:
music
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 http://www.claycotton.com. And I can't stop smiling :)

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


Thanks,

- Greg
PS: I hope you enjoy these sites:
mp3
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 http://www.claycotton.com. It smokes so righteously that I can't stop smiling :)

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

Thanks,

- Sandy

PS: I hope you enjoy these sites:
dancing
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:)

Regards,
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 http://www.yoursecretconfession.com/forum

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 **www.handbagexpress.com** for the ultmate handbag selections, and don't miss out on **www.VegasTours.com**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 www.MySecretConfessionSpace.com. Thanks for letting me post on your site.

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 10:54 PM Anonymous said...

Watiti.com
Join me and my circle of friends at http://www.watiti.com, 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!

Watiti.com

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 2:11 AM Anonymous said...

Best flower for you girlfriend
BEST FLOWER

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=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