Class AbstractTestRule<C,M>
Object
com.liferay.portal.kernel.test.rule.AbstractTestRule<C,M>
- All Implemented Interfaces:
org.junit.rules.TestRule
- Direct Known Subclasses:
ClassTestRule
,DataGuardTestRule
,FeatureFlagTestRule
,InitializeKernelUtilTestRule
,InjectTestRule
,LogAssertionTestRule
,MethodTestRule
,PersistenceTestRule
,SynchronousDestinationTestRule
- Author:
- Matthew Tambara
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
afterClass
(org.junit.runner.Description description, C c) protected abstract void
afterMethod
(org.junit.runner.Description description, M m, Object target) org.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement statement, org.junit.runner.Description description) protected abstract C
beforeClass
(org.junit.runner.Description description) protected abstract M
beforeMethod
(org.junit.runner.Description description, Object target) protected org.junit.runners.model.Statement
createClassStatement
(org.junit.runners.model.Statement statement, org.junit.runner.Description description) protected org.junit.runners.model.Statement
createMethodStatement
(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
-
Constructor Details
-
AbstractTestRule
public AbstractTestRule()
-
-
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
-
afterClass
- Throws:
Throwable
-
afterMethod
protected abstract void afterMethod(org.junit.runner.Description description, M m, Object target) throws Throwable - Throws:
Throwable
-
beforeClass
- Throws:
Throwable
-
beforeMethod
protected abstract M beforeMethod(org.junit.runner.Description description, Object target) throws Throwable - Throws:
Throwable
-
createClassStatement
protected org.junit.runners.model.Statement createClassStatement(org.junit.runners.model.Statement statement, org.junit.runner.Description description) -
createMethodStatement
protected org.junit.runners.model.Statement createMethodStatement(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
-