@Test public void testBuilding() { GenericDecoration instance = new GenericDecoration(); assertTrue(GenericDoNothingBuilding.class.isInstance(instance)); assertEquals(BuildingCategory.DEKO, instance.category); assertEquals(BuildingCategory.DEKO, instance.getCategory()); }
/** 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); }
/** 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()); }
/** 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()); }