Пример #1
1
 /** Test method for {@link icd3.Tank#Tank()}. */
 @Test
 public void testTank() {
   Tank defaultTank = new Tank();
   assertTrue(defaultTank.getBottom() == 0.0);
   assertTrue(defaultTank.getTop() == 0.0);
   assertTrue(defaultTank.baseArea() == 0.0);
 }
Пример #2
1
 /** Test method for {@link icd3.Tank}. */
 @Test
 public void testTankBehavior() {
   Tank tank = new Tank();
   tank.setCoordinates(m_bottomLeft, m_topRight);
   assertTrue(tank.getBottom() == -4.5);
   assertTrue(tank.getTop() == 3.5);
   assertTrue(tank.baseArea() == 1.0);
 }