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

public abstract class AbstractTestRule<C,M> extends Object implements org.junit.rules.TestRule
Author:
Matthew Tambara
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.junit.rules.TestRule
    • afterClass

      protected abstract void afterClass(org.junit.runner.Description description, C c) throws Throwable
      Throws:
      Throwable
    • afterMethod

      protected abstract void afterMethod(org.junit.runner.Description description, M m, Object target) throws Throwable
      Throws:
      Throwable
    • beforeClass

      protected abstract C beforeClass(org.junit.runner.Description description) throws Throwable
      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)