Liferay 7.0-ce-b4

com.liferay.portal.kernel.test.rule
Class NewEnvTestRule

java.lang.Object
  extended by 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


Field Summary
protected static String CLASS_PATH
           
static NewEnvTestRule INSTANCE
           
 
Constructor Summary
protected NewEnvTestRule()
           
 
Method Summary
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
           
protected static void attachProcess(String message)
           
protected  List<String> createArguments(org.junit.runner.Description description)
           
protected  ClassLoader createClassLoader(org.junit.runner.Description description)
           
protected  NewEnv findNewEnv(org.junit.runner.Description description)
           
protected static List<MethodKey> getMethodKeys(Class<?> targetClass, Class<? extends Annotation> annotationClass)
           
protected static void invoke(ClassLoader classLoader, MethodKey methodKey, Object object)
           
protected  List<String> processJVMArgsLine(NewEnv.JVMArgsLine jvmArgsLine)
           
protected  ProcessCallable<Serializable> processProcessCallable(ProcessCallable<Serializable> processCallable, MethodKey testMethodKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NewEnvTestRule INSTANCE

CLASS_PATH

protected static final String CLASS_PATH
Constructor Detail

NewEnvTestRule

protected NewEnvTestRule()
Method Detail

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)

Liferay 7.0-ce-b4