com.liferay.portal.kernel.test
Class BaseTestRule<C,M>
java.lang.Object
com.liferay.portal.kernel.test.BaseTestRule<C,M>
- All Implemented Interfaces:
- org.junit.rules.TestRule
- Direct Known Subclasses:
- CodeCoverageAssertor, DeleteAfterTestRunTestRule, LogAssertionTestRule, MainServletTestRule, PACLTestRule, PersistenceTestRule, ResetDatabaseTestRule, SynchronousDestinationTestRule
public class BaseTestRule<C,M>
- extends Object
- implements org.junit.rules.TestRule
|
Method Summary |
protected void |
afterClass(org.junit.runner.Description description,
C c)
|
protected void |
afterMethod(org.junit.runner.Description description,
M m)
|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
|
protected C |
beforeClass(org.junit.runner.Description description)
|
protected M |
beforeMethod(org.junit.runner.Description description)
|
protected Object |
inspectTarget(org.junit.runners.model.Statement statement)
|
protected void |
invokeStatement(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
|
protected void |
setInstance(Object instance)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseTestRule
public BaseTestRule()
apply
public final org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
- Specified by:
apply in interface org.junit.rules.TestRule
afterClass
protected void afterClass(org.junit.runner.Description description,
C c)
throws Throwable
- Throws:
Throwable
afterMethod
protected void afterMethod(org.junit.runner.Description description,
M m)
throws Throwable
- Throws:
Throwable
beforeClass
protected C beforeClass(org.junit.runner.Description description)
throws Throwable
- Throws:
Throwable
beforeMethod
protected M beforeMethod(org.junit.runner.Description description)
throws Throwable
- Throws:
Throwable
inspectTarget
protected Object inspectTarget(org.junit.runners.model.Statement statement)
invokeStatement
protected void invokeStatement(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
throws Throwable
- Throws:
Throwable
setInstance
protected void setInstance(Object instance)