eg.triviaGameExample.fitnesseFixtures.GameTurnFixture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse Show documentation
Show all versions of fitnesse Show documentation
The fully integrated standalone wiki, and acceptance testing framework.
The newest version!
package eg.triviaGameExample.fitnesseFixtures;
import eg.triviaGameExample.Game;
public class GameTurnFixture {
private int roll;
private Game theGame;
public String player() {
theGame = StaticGame.theGame;
return theGame.takeTurn(roll);
}
public void execute() {
StaticGame.theGame.takeTurn(roll);
}
public boolean gameHasStarted() {
theGame = StaticGame.theGame;
return theGame.gameHasStarted();
}
public void setRoll(int roll) {
this.roll = roll;
}
}