remoteTester.runner.server.interfaces
Interface TestRunnerRemote

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface TestRunnerRemote
extends javax.ejb.EJBObject

EJB Remote Interface


Method Summary
 TestResultRemote run(byte[] classAsByte, java.lang.String className)
          execute a junit TestCase on the server side
 TestResultRemote run(byte[] classAsBytes, java.lang.String className, byte[][] helperClassesAsBytes, java.lang.String[] helperClassNames)
          execute a junit TestCase on the server side with helper classes support
 TestResultRemote run(java.lang.String className)
          execute a junit TestCase on the server side
 TestResultSerializable runWithResult(byte[] testClassAsBytes, java.lang.String testClassName, byte[][] helperClassesAsBytes, java.lang.String[] helperClassNames, java.lang.String testMethodName)
          play a test method from a RemoteTestCase using a junit.textui.TestRunner with HelperClasses supports
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

runWithResult

public TestResultSerializable runWithResult(byte[] testClassAsBytes,
                                            java.lang.String testClassName,
                                            byte[][] helperClassesAsBytes,
                                            java.lang.String[] helperClassNames,
                                            java.lang.String testMethodName)
                                     throws java.lang.ClassNotFoundException,
                                            java.rmi.RemoteException
play a test method from a RemoteTestCase using a junit.textui.TestRunner with HelperClasses supports

Parameters:
testClassAsBytes - a JUnit TestCase class provided as a byte array
testClassName - the class name of a JUnit TestCase class
helperClassesAsBytes -
helperClassNames -
testMethodName - name of the test method to execute
Returns:
a TestResultSerializable for this test
Throws:
java.lang.ClassNotFoundException
java.rmi.RemoteException

run

public TestResultRemote run(byte[] classAsByte,
                            java.lang.String className)
                     throws java.lang.ClassNotFoundException,
                            java.rmi.RemoteException
execute a junit TestCase on the server side

Parameters:
classAsByte - the class definition as a byte array
className - the full qualified class name
Returns:
a TestResultRemote that contains informations about the execution of the TestCase
Throws:
java.lang.ClassNotFoundException
java.rmi.RemoteException

run

public TestResultRemote run(java.lang.String className)
                     throws java.lang.ClassNotFoundException,
                            java.rmi.RemoteException
execute a junit TestCase on the server side

Parameters:
className - the full qualified name of a TestCase available on server side
Returns:
a TestResultRemote that contains informations about the execution of the TestCase
Throws:
java.lang.ClassNotFoundException
java.rmi.RemoteException

run

public TestResultRemote run(byte[] classAsBytes,
                            java.lang.String className,
                            byte[][] helperClassesAsBytes,
                            java.lang.String[] helperClassNames)
                     throws java.lang.ClassNotFoundException,
                            java.rmi.RemoteException
execute a junit TestCase on the server side with helper classes support

Parameters:
classAsBytes - the class definition as a byte array
className - the full qualified class name
helperClassesAsBytes - the helper classes definitions as byte arrays
helperClassNames - the full qualified classes names
Returns:
a TestResultRemote that contains informations about the execution of the TestCase
Throws:
java.lang.ClassNotFoundException
java.rmi.RemoteException


Copyright © 2003-2004 Nicolas FRANK. All Rights Reserved.