Ejemplo n.º 1
0
 @Test
 public void testBuilding() {
   GenericDecoration instance = new GenericDecoration();
   assertTrue(GenericDoNothingBuilding.class.isInstance(instance));
   assertEquals(BuildingCategory.DEKO, instance.category);
   assertEquals(BuildingCategory.DEKO, instance.getCategory());
 }
Ejemplo n.º 2
0
 /** Test of pause method, of class GenericDecoration. */
 @Test
 public void testPause() {
   GenericDecoration instance = new GenericDecoration();
   instance.setBuildingVO(new BuildingVO());
   instance.pause();
   assertSame(true, instance.getBuildingVO().isProductionActive);
 }
Ejemplo n.º 3
0
 /** Test of setBuildingVO method, of class GenericDecoration. */
 @Test
 public void testSetBuildingVO() {
   BuildingVO bvo = new BuildingVO();
   GenericDecoration instance = new GenericDecoration();
   instance.setBuildingVO(bvo);
   assertSame(bvo, instance.buildingVO);
   assertSame(bvo, instance.getBuildingVO());
 }
Ejemplo n.º 4
0
 /** Test of setType method, of class GenericDecoration. */
 @Test
 public void testSetType() {
   GenericDecoration instance = new GenericDecoration();
   instance.setType(BuildingTypes.BAKERY);
   assertSame(BuildingTypes.BAKERY, instance.type);
   assertSame(BuildingTypes.BAKERY, instance.getType());
   assertSame("BAKERY", instance.name);
   assertSame("BAKERY", instance.getName());
 }