public class RemoteContainerTest extends Object
This class supports all the JU container and DB test annotations like @DataSet, @DataSetExport and the like.
| Modifier and Type | Field and Description |
|---|---|
protected JndiServiceLocator |
serviceLocator
Remote ServiceLocator instance that can be used to lookup JNDI or CDI objects on the server.
|
protected TestRunnerFacade |
testRunnerFacade
Instance of a (remotely available) TestRunnerFacade.
|
ContainerTestRunnerRule |
testRunnerRule
Rule that performs test setup and verification on the server.
|
| Constructor and Description |
|---|
RemoteContainerTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
protected <T> T |
runMethodInEjbContext(String className,
String methodName)
Runs a parameterless method in an EJB context and returns the result of the method.
|
protected <T> T |
runMethodInEjbContext(String className,
String methodName,
Class<?>[] parameterTypes,
Object[] args)
Runs an arbitrary method in an EJB context and returns the result of the method.
|
public ContainerTestRunnerRule testRunnerRule
protected JndiServiceLocator serviceLocator
protected TestRunnerFacade testRunnerFacade
public void init()
protected final <T> T runMethodInEjbContext(String className, String methodName)
className - Class name that contains the methodmethodName - Method nameprotected final <T> T runMethodInEjbContext(String className, String methodName, Class<?>[] parameterTypes, Object[] args)
className - Class name that contains the methodmethodName - Method nameparameterTypes - Array of argument typesargs - Array of argumentsCopyright © 2015. All rights reserved.