Package net.officefloor.frame.test
Class MockTeamSource
- java.lang.Object
-
- net.officefloor.frame.test.MockTeamSource
-
- All Implemented Interfaces:
TeamSource
@TestSource public class MockTeamSource extends java.lang.Object implements TeamSource
MockTeamSource.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MockTeamSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TeamBuilder<?>bindTeamBuilder(OfficeFloorBuilder officeFloorBuilder, java.lang.String teamName, Team team)Binds theTeamto the name.TeamcreateTeam(TeamSourceContext context)Creates theTeam.TeamSourceSpecificationgetSpecification()Obtains the specification for this.
-
-
-
Method Detail
-
bindTeamBuilder
public static TeamBuilder<?> bindTeamBuilder(OfficeFloorBuilder officeFloorBuilder, java.lang.String teamName, Team team)
Binds theTeamto the name.- Parameters:
officeFloorBuilder-OfficeFloorBuilder.teamName- Name ofTeam.team-Team.- Returns:
TeamBuilder.
-
getSpecification
public TeamSourceSpecification 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
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.
-
-