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