public class NewEnvTestRule
extends Object
implements org.junit.rules.TestRule
Modifier and Type | Field and Description |
---|---|
protected static String |
CLASS_PATH |
static NewEnvTestRule |
INSTANCE |
Modifier | Constructor and Description |
---|---|
protected |
NewEnvTestRule() |
Modifier and Type | Method and Description |
---|---|
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<com.liferay.portal.kernel.util.MethodKey> |
getMethodKeys(Class<?> targetClass,
Class<? extends Annotation> annotationClass) |
protected static void |
invoke(ClassLoader classLoader,
com.liferay.portal.kernel.util.MethodKey methodKey,
Object object) |
protected Map<String,String> |
processEnvironmentVariables(String[] variables) |
protected List<String> |
processJVMArgsLine(NewEnv.JVMArgsLine jvmArgsLine) |
protected com.liferay.petra.process.ProcessCallable<Serializable> |
processProcessCallable(com.liferay.petra.process.ProcessCallable<Serializable> processCallable,
com.liferay.portal.kernel.util.MethodKey testMethodKey) |
protected String |
resolveSystemProperty(String value) |
protected void |
setEnvironment(com.liferay.petra.process.ProcessConfig.Builder builder,
org.junit.runner.Description description) |
public static final NewEnvTestRule INSTANCE
protected static final String CLASS_PATH
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
protected static void attachProcess(String message)
protected static List<com.liferay.portal.kernel.util.MethodKey> getMethodKeys(Class<?> targetClass, Class<? extends Annotation> annotationClass)
protected static void invoke(ClassLoader classLoader, com.liferay.portal.kernel.util.MethodKey methodKey, Object object) throws Exception
Exception
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 Map<String,String> processEnvironmentVariables(String[] variables)
protected List<String> processJVMArgsLine(NewEnv.JVMArgsLine jvmArgsLine)
protected com.liferay.petra.process.ProcessCallable<Serializable> processProcessCallable(com.liferay.petra.process.ProcessCallable<Serializable> processCallable, com.liferay.portal.kernel.util.MethodKey testMethodKey)
protected String resolveSystemProperty(String value)
protected void setEnvironment(com.liferay.petra.process.ProcessConfig.Builder builder, org.junit.runner.Description description)