@Test public void testButtonLimit() { final ButtonStrategy strategy = new ButtonStrategy(menu); final ButtonProperties prop = new ButtonProperties(menu); ButtonLimit buttonLimit = new ButtonLimit(menu, strategy); final String a = menu.getLimit(); prop.doClick(); buttonLimit.doClick(); buttonLimit.doClick(); buttonLimit.doClick(); assertTrue(a.equals(menu.getLimit())); }
@Test public void testButtonProperties() { final ButtonProperties button = new ButtonProperties(menu); button.doClick(); assertNotNull(menu.getProperties()); }