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.Statementapply(org.junit.runners.model.Statement statement, org.junit.runner.Description description) protected static voidattachProcess(String message) createArguments(org.junit.runner.Description description) protected ClassLoadercreateClassLoader(org.junit.runner.Description description) protected NewEnvfindNewEnv(org.junit.runner.Description description) protected static List<com.liferay.portal.kernel.util.MethodKey>getMethodKeys(Class<?> targetClass, Class<? extends Annotation> annotationClass) protected static voidinvoke(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 StringresolveSystemProperty(String value) protected voidsetEnvironment(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:
applyin 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)
-