Exemple #1
0
 @Test
 public void testButtonBotsMore() {
   ButtonBotsMore button = new ButtonBotsMore(menu);
   final int a = menu.getBotsCount();
   button.doClick();
   assertTrue(a < menu.getBotsCount());
 }
Exemple #2
0
 @Test
 public void testButtonBotsLess() {
   final ButtonBotsLess button = new ButtonBotsLess(menu);
   menu.setBotsCount(2);
   final int a = menu.getBotsCount();
   button.doClick();
   assertTrue(a > menu.getBotsCount());
 }