Package net.officefloor.test
Class OfficeFloorRule
java.lang.Object
net.officefloor.test.AbstractOfficeFloorJUnit
net.officefloor.test.OfficeFloorRule
- All Implemented Interfaces:
OfficeFloorJUnit,org.junit.rules.TestRule
TestRule for running OfficeFloor around tests.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate for no dependency injection of test.OfficeFloorRule(Object testInstance) Instantiate to dependency inject into the test instance. -
Method Summary
Methods inherited from class net.officefloor.test.AbstractOfficeFloorJUnit
addTestDependencyService, afterAll, afterEach, beforeAll, beforeEach, closeOfficeFloor, getDependency, getOfficeFloor, getTestDependencyServices, initialiseOfficeFloorCompiler, invokeProcess, invokeProcess, invokeProcess, isDependencyAvailable, openOfficeFloor, setDependencyLoadTimeout
-
Constructor Details
-
OfficeFloorRule
public OfficeFloorRule()Instantiate for no dependency injection of test. -
OfficeFloorRule
Instantiate to dependency inject into the test instance.- Parameters:
testInstance- Test instance.
-
-
Method Details
-
doFail
Description copied from class:AbstractOfficeFloorJUnitUndertake JUnit version specific fail.- Specified by:
doFailin classAbstractOfficeFloorJUnit- Parameters:
message- Message for the fail.
-
doFail
Description copied from class:AbstractOfficeFloorJUnitUndertake JUnit version specific fail.- Specified by:
doFailin classAbstractOfficeFloorJUnit- Parameters:
cause- Cause of the failure.- Returns:
Errorto propagate.
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-