| Author |
Invoking bean from JUnit
|
Yan Lee
Ranch Hand
Joined: Sep 15, 2003
Posts: 94
|
|
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
Joined: May 29, 2003
Posts: 1258
|
|
|
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.
|
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26192
|
|
If you put a main method in your class, you can run the class without having to worry about any arguments.
|
[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
|
 |
 |
|
|
subject: Invoking bean from JUnit
|
|
|