Liferay 7.0-ce-m3

com.liferay.portal.kernel.test
Class BaseTestRule<C,M>

java.lang.Object
  extended by 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


Nested Class Summary
static class BaseTestRule.StatementWrapper
           
 
Constructor Summary
BaseTestRule()
           
 
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
 

Constructor Detail

BaseTestRule

public BaseTestRule()
Method Detail

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)

Liferay 7.0-ce-m3