Exemple #1
0
 @SuppressWarnings("serial")
 @Before
 public void createBoardAndGame() throws FileNotFoundException {
   b = new Board();
   b.add("C", 200, "A", "Q");
   g = new Game();
   g.setOutputStream(new PrintStream(new ByteArrayOutputStream()));
   g.setBoard(b);
   g.setAnswerTime(1);
   g.addPlayer(P1);
   g.addPlayer(P2);
   g.start();
   g.select("C", 200);
 }
Exemple #2
0
 @Test(expected = AnswerQuestionCurrentlySelectedException.class)
 public void selectAnswerWhenOneAlreadySelected() {
   g.select("C", 400);
 }