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 theTeam
to the name.Team
createTeam(TeamSourceContext context)
Creates theTeam
.TeamSourceSpecification
getSpecification()
Obtains the specification for this.
-
-
-
Method Detail
-
bindTeamBuilder
public static TeamBuilder<?> bindTeamBuilder(OfficeFloorBuilder officeFloorBuilder, java.lang.String teamName, Team team)
Binds theTeam
to the name.- Parameters:
officeFloorBuilder
-OfficeFloorBuilder
.teamName
- Name ofTeam
.team
-Team
.- Returns:
TeamBuilder
.
-
getSpecification
public TeamSourceSpecification getSpecification()
Description copied from interface:TeamSource
Obtains 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:
getSpecification
in interfaceTeamSource
- Returns:
- Specification of this.
-
createTeam
public Team createTeam(TeamSourceContext context) throws java.lang.Exception
Description copied from interface:TeamSource
Creates theTeam
.- Specified by:
createTeam
in interfaceTeamSource
- Parameters:
context
-TeamSourceContext
.- Returns:
Team
.- Throws:
java.lang.Exception
- If fails to configure theTeamSource
.
-
-