aspose file tools*
The moose likes Testing and the fly likes JUNIT to test EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "JUNIT to test EJB" Watch "JUNIT to test EJB" New topic
Author

JUNIT to test EJB

Ahmed Talokdar
Greenhorn

Joined: Apr 01, 2003
Posts: 7
How can I use JUNIT to test EJBs on EJB server such as weblogic?


best regards,<br /> <br />Ahmed
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Did you see this thread posted earlier today?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ahmed Talokdar
Greenhorn

Joined: Apr 01, 2003
Posts: 7
Thanks..... but I need a tutorial that shows how to install it and use it against an EJB app on weblogic server using eclipse as IDE.
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
Originally posted by Tufail Ahmed:
Thanks..... but I need a tutorial that shows how to install it and use it against an EJB app on weblogic server using eclipse as IDE.

cactus definitely has an eclipse plug-in. So u can zero in on cactus for unit tesing EJB residing on weblogic server through eclipse.
But step-by-step tutorial am not sure where it is :-(
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Here is a step-by-step guide for writing an EJB Cactus test for the J2EE reference implementation. The only difference due to using WebLogic instead of the RI is in the vendor-specific deployment descriptors (and these steps have nothing Cactus-specific so you should be able to cope if you know how to use WebLogic in general).
For Eclipse, there is a Cactus plugin available. Here is an IBM tutorial for writing Cactus tests using WSAD (which is an enhanced Eclipse).
Ahmed Talokdar
Greenhorn

Joined: Apr 01, 2003
Posts: 7
Thanks I will try the links.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Cactus? I like the name.


Groovy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JUNIT to test EJB