Package net.officefloor.frame.test
Class MockTeamSource
java.lang.Object
net.officefloor.frame.test.MockTeamSource
- All Implemented Interfaces:
TeamSource
Mock
TeamSource.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TeamBuilder<?>bindTeamBuilder(OfficeFloorBuilder officeFloorBuilder, String teamName, Team team) Binds theTeamto the name.createTeam(TeamSourceContext context) Creates theTeam.Obtains the specification for this.
-
Constructor Details
-
MockTeamSource
public MockTeamSource()
-
-
Method Details
-
bindTeamBuilder
public static TeamBuilder<?> bindTeamBuilder(OfficeFloorBuilder officeFloorBuilder, String teamName, Team team) Binds theTeamto the name.- Parameters:
officeFloorBuilder-OfficeFloorBuilder.teamName- Name ofTeam.team-Team.- Returns:
TeamBuilder.
-
getSpecification
Description copied from interface:TeamSourceObtains the specification for this.
This will be called before any other methods, therefore this method must be able to return the specification immediately after a default constructor instantiation.
- Specified by:
getSpecificationin interfaceTeamSource- Returns:
- Specification of this.
-
createTeam
Description copied from interface:TeamSourceCreates theTeam.- Specified by:
createTeamin interfaceTeamSource- Parameters:
context-TeamSourceContext.- Returns:
Team.- Throws:
Exception- If fails to configure theTeamSource.
-