This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Testing and the fly likes testing with junitEE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "testing with junitEE" Watch "testing with junitEE" New topic

testing with junitEE

shlomy bentulilah
Ranch Hand

Joined: Oct 25, 2007
Posts: 37

Can someone post his opinion about JunitEE ?
I want to test my work based on struts 1.3 meaning I want to test the UI with its error-handling messages (based on incorrect inputs) and the EJB parts (based on reading and writing from DataBase)...
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32635

My personal preference is to test EJBs thru external (remote) calls and the web through a browser based tool like Selenium. (And of course, everything through unit tests.)

JUnitEE is somewhere in between these two and doesn't meet a need I have.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
shlomy bentulilah
Ranch Hand

Joined: Oct 25, 2007
Posts: 37
Thanks for your answer ...

I looked for Selenium and it really and it seems O.K although it does NOT support explorer 7 (?) yet.

My question is : what do you mean by "to test EJBs thru external (remote) calls"..? can you give me a simple example or direct me to a URL ?

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
You could also take a look at the online extra of my book. It's a whole book chapter on writing tests for EJB components.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: testing with junitEE
It's not a secret anymore!