示例#1
0
 @Test
 public void addFlipperTest() {
   model.addFlipper(0, 0, true, "flipper");
   assertTrue(model.getFlippers().size() == 1);
   model.addFlipper(0, 0, true, "flipper");
   assertTrue(model.getFlippers().size() == 1);
   model.addFlipper(60, 0, true, "flipper");
   assertTrue(model.getFlippers().size() == 2);
 }
示例#2
0
 @Test
 public void setFlippersTest() {
   List<Flipper> flippers = new ArrayList<Flipper>();
   Flipper flip = new Flipper(0, 0, true, "flip");
   flippers.add(flip);
   model.setFlippers(flippers);
   assertTrue(model.getFlippers().size() == 1);
   assertEquals(model.getFlippers().get(0), flip);
 }