public interface EJBTestRunner
extends javax.ejb.EJBObject
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<description>JUnit Session Bean Test Runner</description>
<ejb-name>EJBTestRunnerEJB</ejb-name>
<home>net.sourceforge.junitejb.EJBTestRunnerHome</home>
<remote>net.sourceforge.junitejb.EJBTestRunner</remote>
<ejb-class>net.sourceforge.junitejb.EJBTestRunnerBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
Additionally, the home interface must be bount to the jndi name:
"ejb/EJBTestRunner"
It is recomended that the test classes and the classes of JUnitEJB be
packaged into a single jar.EJBTestCase| Modifier and Type | Method and Description |
|---|---|
void |
run(java.lang.String className,
java.lang.String methodName)
Runs the specified test method on the specified class.
|
void run(java.lang.String className,
java.lang.String methodName)
throws RemoteTestException,
java.rmi.RemoteException
className - the name of the test classmethodName - the name of the test methodRemoteTestException - If any throwable is thrown during execution
of the method, it is wrapped with a RemoteTestException and rethrown.java.rmi.RemoteExceptionDistributable under LGPL license. See terms of license at gnu.org