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
@TestSource public class StepTeam extends AbstractTeamSource implements Team
Teamthat executes theJobby theTestCase. 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 Constructor Description StepTeam()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignJob(Job job)TeamcreateTeam(TeamSourceContext context)Creates theTeam.voidexecuteJob()Executes the currentJob.protected voidloadSpecification(AbstractTeamSource.SpecificationContext context)Overridden to load specification.voidstartWorking()Indicates for theTeamto start working.voidstopWorking()Indicates for theTeamto stop working.-
Methods inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
getSpecification
-
-
-
-
Method Detail
-
executeJob
public void executeJob()
Executes the currentJob.
-
startWorking
public void startWorking()
Description copied from interface:TeamIndicates for theTeamto start working.- Specified by:
startWorkingin interfaceTeam
-
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
protected void loadSpecification(AbstractTeamSource.SpecificationContext context)
Description copied from class:AbstractTeamSourceOverridden to load specification.- Specified by:
loadSpecificationin classAbstractTeamSource- Parameters:
context-AbstractTeamSource.SpecificationContext.
-
createTeam
public Team createTeam(TeamSourceContext context) throws java.lang.Exception
Description copied from interface:TeamSourceCreates theTeam.- Specified by:
createTeamin interfaceTeamSource- Parameters:
context-TeamSourceContext.- Returns:
Team.- Throws:
java.lang.Exception- If fails to configure theTeamSource.
-
-