Exemplo n.º 1
0
 @Test
 public void testButtonPlayersMore() {
   final ButtonPlayersMore button = new ButtonPlayersMore(menu);
   menu.setPlayersCount(5);
   final int a = menu.getPlayersCount();
   button.doClick();
   assertTrue(a < menu.getPlayersCount());
 }
Exemplo n.º 2
0
 @Test
 public void testPlayersLess() {
   final ButtonPlayersLess button = new ButtonPlayersLess(menu);
   menu.setPlayersCount(5);
   final int a = menu.getPlayersCount();
   button.doClick();
   assertTrue(a > menu.getPlayersCount());
 }