File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 8898

Cactus? I like the name.


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JUNIT to test EJB
 
Similar Threads
JUnit use with VAJ
EJB3 testing with JUnit4
Test cases
How to use JUnit and EJB3
Junit test EJB