com.liferay.portal.kernel.test.rule
Class NewEnvTestRule
java.lang.Object
com.liferay.portal.kernel.test.rule.NewEnvTestRule
- All Implemented Interfaces:
- org.junit.rules.TestRule
- Direct Known Subclasses:
- AspectJNewEnvTestRule
public class NewEnvTestRule
- extends Object
- implements org.junit.rules.TestRule
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final NewEnvTestRule INSTANCE
CLASS_PATH
protected static final String CLASS_PATH
NewEnvTestRule
protected NewEnvTestRule()
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
- Specified by:
apply in interface org.junit.rules.TestRule
attachProcess
protected static void attachProcess(String message)
getMethodKeys
protected static List<MethodKey> getMethodKeys(Class<?> targetClass,
Class<? extends Annotation> annotationClass)
invoke
protected static void invoke(ClassLoader classLoader,
MethodKey methodKey,
Object object)
throws Exception
- Throws:
Exception
createArguments
protected List<String> createArguments(org.junit.runner.Description description)
createClassLoader
protected ClassLoader createClassLoader(org.junit.runner.Description description)
findNewEnv
protected NewEnv findNewEnv(org.junit.runner.Description description)
processJVMArgsLine
protected List<String> processJVMArgsLine(NewEnv.JVMArgsLine jvmArgsLine)
processProcessCallable
protected ProcessCallable<Serializable> processProcessCallable(ProcessCallable<Serializable> processCallable,
MethodKey testMethodKey)