GeeCON Prague 2014*
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


JavaRanch » Java Forums » Engineering » Testing
Bookmark "testing with junitEE" Watch "testing with junitEE" New topic
Author

testing with junitEE

shlomy bentulilah
Ranch Hand

Joined: Oct 25, 2007
Posts: 37
Hi

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)...
Thanks.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30580
    
154

Shlomy,
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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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 ?

Thanks.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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]
 
GeeCON Prague 2014
 
subject: testing with junitEE