Class OfficeFloorRule

All Implemented Interfaces:
OfficeFloorJUnit, org.junit.rules.TestRule

public class OfficeFloorRule extends AbstractOfficeFloorJUnit implements org.junit.rules.TestRule
TestRule for running OfficeFloor around tests.
Author:
Daniel Sagenschneider
  • Constructor Details

    • OfficeFloorRule

      public OfficeFloorRule()
      Instantiate for no dependency injection of test.
    • OfficeFloorRule

      public OfficeFloorRule(Object testInstance)
      Instantiate to dependency inject into the test instance.
      Parameters:
      testInstance - Test instance.
  • Method Details

    • doFail

      protected void doFail(String message)
      Description copied from class: AbstractOfficeFloorJUnit
      Undertake JUnit version specific fail.
      Specified by:
      doFail in class AbstractOfficeFloorJUnit
      Parameters:
      message - Message for the fail.
    • doFail

      protected Error doFail(Throwable cause)
      Description copied from class: AbstractOfficeFloorJUnit
      Undertake JUnit version specific fail.
      Specified by:
      doFail in class AbstractOfficeFloorJUnit
      Parameters:
      cause - Cause of the failure.
      Returns:
      Error to propagate.
    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Specified by:
      apply in interface org.junit.rules.TestRule