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