Class NewEnvTestRule
Object
com.liferay.portal.kernel.test.rule.NewEnvTestRule
- All Implemented Interfaces:
org.junit.rules.TestRule
- Direct Known Subclasses:
AspectJNewEnvTestRule
- Author:
- Shuyang Zhou
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement statement, org.junit.runner.Description description) protected static void
attachProcess
(String message) 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) processEnvironmentVariables
(String[] variables) 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)
-
Field Details
-
INSTANCE
-
CLASS_PATH
-
-
Constructor Details
-
NewEnvTestRule
protected NewEnvTestRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description) - Specified by:
apply
in interfaceorg.junit.rules.TestRule
-
attachProcess
-
getMethodKeys
protected static List<com.liferay.portal.kernel.util.MethodKey> getMethodKeys(Class<?> targetClass, Class<? extends Annotation> annotationClass) -
invoke
protected static void invoke(ClassLoader classLoader, com.liferay.portal.kernel.util.MethodKey methodKey, Object object) throws Exception - Throws:
Exception
-
createArguments
-
createClassLoader
-
findNewEnv
-
processEnvironmentVariables
-
processJVMArgsLine
-
processProcessCallable
protected com.liferay.petra.process.ProcessCallable<Serializable> processProcessCallable(com.liferay.petra.process.ProcessCallable<Serializable> processCallable, com.liferay.portal.kernel.util.MethodKey testMethodKey) -
resolveSystemProperty
-
setEnvironment
protected void setEnvironment(com.liferay.petra.process.ProcessConfig.Builder builder, org.junit.runner.Description description)
-