Package net.officefloor.frame.test
Class OfficeManagerTestSupport
java.lang.Object
net.officefloor.frame.test.OfficeManagerTestSupport
- All Implemented Interfaces:
TestSupport
TestSupport to provide the OfficeManager.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Supplier<OfficeManager>capture(OfficeFloorBuilder officeFloorBuilder) Sets up the capture ofOfficeManager.getOfficeManager(int processStateIndex) Obtains theOfficeManager.voidinit(org.junit.jupiter.api.extension.ExtensionContext context) Intialise.voidRuns asset check on all capturedOfficeManagerinstances.
-
Constructor Details
-
OfficeManagerTestSupport
public OfficeManagerTestSupport()
-
-
Method Details
-
capture
Sets up the capture ofOfficeManager.- Parameters:
officeFloorBuilder-OfficeFloorBuilder.- Returns:
Supplierto provide the capturedOfficeManager.
-
getOfficeManager
Obtains theOfficeManager.- Parameters:
processStateIndex- Index of the createdProcessState.- Returns:
OfficeManager.
-
runAssetChecks
public void runAssetChecks()Runs asset check on all capturedOfficeManagerinstances. -
init
Description copied from interface:TestSupportIntialise.- Specified by:
initin interfaceTestSupport- Parameters:
context-ExtensionContext.- Throws:
Exception- If fails to init.
-