Package net.officefloor.test
Interface OfficeFloorJUnit
- All Known Implementing Classes:
AbstractOfficeFloorJUnit,OfficeFloorExtension,OfficeFloorRule
public interface OfficeFloorJUnit
JUnit functionality for
OfficeFloor.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObtains theOfficeFloor.voidinvokeProcess(String functionName, Object parameter) voidinvokeProcess(String functionName, Object parameter, long waitTime) voidinvokeProcess(String officeName, String functionName, Object parameter, long waitTime) Convenience method to invoke theProcessStatefor theManagedFunction.
-
Method Details
-
getOfficeFloor
OfficeFloor getOfficeFloor()Obtains theOfficeFloor.- Returns:
OfficeFloor.
-
invokeProcess
- Parameters:
functionName- Name of theManagedFunction.parameter- Parameter to theManagedFunction.
-
invokeProcess
- Parameters:
functionName- Name of theManagedFunction.parameter- Parameter to theManagedFunction.waitTime- Time in milliseconds to wait forProcessStateto complete.
-
invokeProcess
Convenience method to invoke theProcessStatefor theManagedFunction.- Parameters:
officeName- Name of theOfficecontaining theManagedFunction.functionName- Name of theManagedFunction.parameter- Parameter to theManagedFunction.waitTime- Time in milliseconds to wait forProcessStateto complete.
-