Ejemplo n.º 1
0
 @Test
 public void testSizeOf0() {
   assertEquals(equipment.getSize(), SIZE, 0.0);
   Double newSize = 0.0;
   equipment.setSize(newSize);
   assertEquals(equipment.getSize(), newSize, 0.0);
 }
Ejemplo n.º 2
0
 @Before
 public void setUp() throws Exception {
   equipment = new Equipment();
   equipment.setCost(COST);
   equipment.setSize(SIZE);
   inverter = new Inverter();
   equipment.setInverter(inverter);
   panels = new ArrayList<Panel>();
   equipment.setPanels(panels);
   battery = new Battery();
   equipment.setBattery(battery);
   inverters = new ArrayList<Inverter>();
 }
Ejemplo n.º 3
0
 @Test
 public void testHighSize() {
   Double newSize = 999.999;
   equipment.setSize(newSize);
   assertEquals(equipment.getSize(), newSize, 0.0);
 }