• Post Reply Bookmark Topic Watch Topic
  • New Topic

Invoking bean from JUnit  RSS feed

 
Yan Lee
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
I have written a stateless session bean, created an ear and put deployed it on my server(Weblogic 7.0). I have written a stand-alone JUnit that invokes the ejb. What arguments do I have to pass along with the java command to run the JUnit?
Thanks in advance for the help.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are multiple ways to run unit tests. You should consult the JUnit documentation for a listing of these. Personally, I usually use the Swing runner. If you're running the unit tests within your container that's a whole different story though. Check out your JUnit docs.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you put a main method in your class, you can run the class without having to worry about any arguments.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!