public class NewEnvTestRule
extends java.lang.Object
implements org.junit.rules.TestRule
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.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(java.lang.String message) |
protected java.util.List<java.lang.String> |
createArguments(org.junit.runner.Description description) |
protected java.lang.ClassLoader |
createClassLoader(org.junit.runner.Description description) |
protected NewEnv |
findNewEnv(org.junit.runner.Description description) |
protected static java.util.List<MethodKey> |
getMethodKeys(java.lang.Class<?> targetClass,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass) |
protected static void |
invoke(java.lang.ClassLoader classLoader,
MethodKey methodKey,
java.lang.Object object) |
protected java.util.Map<java.lang.String,java.lang.String> |
processEnvironmentVariables(java.lang.String[] variables) |
protected java.util.List<java.lang.String> |
processJVMArgsLine(NewEnv.JVMArgsLine jvmArgsLine) |
protected ProcessCallable<java.io.Serializable> |
processProcessCallable(ProcessCallable<java.io.Serializable> processCallable,
MethodKey testMethodKey) |
protected java.lang.String |
resolveSystemProperty(java.lang.String value) |
protected void |
setEnvironment(ProcessConfig.Builder builder,
org.junit.runner.Description description) |
public static final NewEnvTestRule INSTANCE
protected static final java.lang.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.TestRuleprotected static void attachProcess(java.lang.String message)
protected static java.util.List<MethodKey> getMethodKeys(java.lang.Class<?> targetClass, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
protected static void invoke(java.lang.ClassLoader classLoader,
MethodKey methodKey,
java.lang.Object object)
throws java.lang.Exception
java.lang.Exceptionprotected java.util.List<java.lang.String> createArguments(org.junit.runner.Description description)
protected java.lang.ClassLoader createClassLoader(org.junit.runner.Description description)
protected NewEnv findNewEnv(org.junit.runner.Description description)
protected java.util.Map<java.lang.String,java.lang.String> processEnvironmentVariables(java.lang.String[] variables)
protected java.util.List<java.lang.String> processJVMArgsLine(NewEnv.JVMArgsLine jvmArgsLine)
protected ProcessCallable<java.io.Serializable> processProcessCallable(ProcessCallable<java.io.Serializable> processCallable, MethodKey testMethodKey)
protected java.lang.String resolveSystemProperty(java.lang.String value)
protected void setEnvironment(ProcessConfig.Builder builder, org.junit.runner.Description description)