Esempio n. 1
0
 @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()));
 }
Esempio n. 2
0
 @Test
 public void testButtonProperties() {
   final ButtonProperties button = new ButtonProperties(menu);
   button.doClick();
   assertNotNull(menu.getProperties());
 }