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
TestSupport
to 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
.OfficeManager
getOfficeManager(int processStateIndex)
Obtains theOfficeManager
.void
init(org.junit.jupiter.api.extension.ExtensionContext context)
Intialise.void
runAssetChecks()
Runs asset check on all capturedOfficeManager
instances.
-
-
-
Method Detail
-
capture
public static java.util.function.Supplier<OfficeManager> capture(OfficeFloorBuilder officeFloorBuilder)
Sets up the capture ofOfficeManager
.- Parameters:
officeFloorBuilder
-OfficeFloorBuilder
.- Returns:
Supplier
to 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 capturedOfficeManager
instances.
-
init
public void init(org.junit.jupiter.api.extension.ExtensionContext context) throws java.lang.Exception
Description copied from interface:TestSupport
Intialise.- Specified by:
init
in interfaceTestSupport
- Parameters:
context
-ExtensionContext
.- Throws:
java.lang.Exception
- If fails to init.
-
-