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