Package net.officefloor.frame.test
Class StepTeam
java.lang.Object
net.officefloor.frame.api.team.source.impl.AbstractTeamSource
net.officefloor.frame.test.StepTeam
- All Implemented Interfaces:
TeamSource,Team
Team that executes the Job by the TestCase. This
effectively enables stepping through the logic to test.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
AbstractTeamSource.SpecificationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateTeam(TeamSourceContext context) Creates theTeam.voidExecutes the currentJob.protected voidOverridden to load specification.voidIndicates for theTeamto start working.voidIndicates for theTeamto stop working.Methods inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
getSpecification
-
Constructor Details
-
StepTeam
public StepTeam()
-
-
Method Details
-
executeJob
public void executeJob()Executes the currentJob. -
startWorking
public void startWorking()Description copied from interface:TeamIndicates for theTeamto start working.- Specified by:
startWorkingin interfaceTeam
-
assignJob
Description copied from interface:Team -
stopWorking
public void stopWorking()Description copied from interface:TeamIndicates for the
Teamto stop working.This method should block and only return control when the
Teamhas stopped working and is no longer assignedJobinstances to complete.- Specified by:
stopWorkingin interfaceTeam
-
loadSpecification
Description copied from class:AbstractTeamSourceOverridden to load specification.- Specified by:
loadSpecificationin classAbstractTeamSource- Parameters:
context-AbstractTeamSource.SpecificationContext.
-
createTeam
Description copied from interface:TeamSourceCreates theTeam.- Specified by:
createTeamin interfaceTeamSource- Parameters:
context-TeamSourceContext.- Returns:
Team.- Throws:
Exception- If fails to configure theTeamSource.
-