1 /***
2 * Created by Nicolas FRANK
3 * @mail: nicolas.frank@laposte.net
4 * Date: Oct 22, 2002
5 * Time: 10:22:56 AM
6 */
7 package remoteTester.runner.server.interfaces;
8
9 import remoteTester.framework.TestResultRemote;
10 import remoteTester.framework.TestResultSerializable;
11
12 import javax.ejb.EJBObject;
13 import java.rmi.RemoteException;
14
15 /***
16 * EJB Remote Interface
17 */
18 public interface TestRunnerRemote extends EJBObject {
19
20 /***
21 * play a test method from a RemoteTestCase using a junit.textui.TestRunner with HelperClasses supports
22 *
23 * @param testClassAsBytes a JUnit TestCase class provided as a byte array
24 * @param testClassName the class name of a JUnit TestCase class
25 * @param helperClassesAsBytes
26 * @param helperClassNames
27 * @param testMethodName name of the test method to execute
28 * @return a TestResultSerializable for this test
29 * @throws ClassNotFoundException
30 */
31 public TestResultSerializable runWithResult(byte[] testClassAsBytes, String testClassName, byte[][] helperClassesAsBytes, String[] helperClassNames, String testMethodName) throws ClassNotFoundException, RemoteException;
32
33 /***
34 * execute a junit TestCase on the server side
35 *
36 * @param classAsByte the class definition as a byte array
37 * @param className the full qualified class name
38 * @return a TestResultRemote that contains informations about the execution of the TestCase
39 * @throws ClassNotFoundException
40 * @throws RemoteException
41 */
42 public TestResultRemote run(byte[] classAsByte, String className) throws ClassNotFoundException, RemoteException;
43
44 /***
45 * execute a junit TestCase on the server side
46 *
47 * @param className the full qualified name of a TestCase available on server side
48 * @return a TestResultRemote that contains informations about the execution of the TestCase
49 * @throws ClassNotFoundException
50 * @throws RemoteException
51 */
52 public TestResultRemote run(String className) throws ClassNotFoundException, RemoteException;
53
54 /***
55 * execute a junit TestCase on the server side with helper classes support
56 *
57 * @param classAsBytes the class definition as a byte array
58 * @param className the full qualified class name
59 * @param helperClassesAsBytes the helper classes definitions as byte arrays
60 * @param helperClassNames the full qualified classes names
61 * @return a TestResultRemote that contains informations about the execution of the TestCase
62 * @throws ClassNotFoundException
63 * @throws RemoteException
64 */
65 public TestResultRemote run(byte[] classAsBytes, String className, byte[][] helperClassesAsBytes, String[] helperClassNames) throws ClassNotFoundException, RemoteException;
66
67 }
This page was automatically generated by Maven