Ejemplo n.º 1
0
 @Test
 public void testCut() {
   Total total = new Total();
   Cut cut = new Cut();
   double before = total.reduce(sampleCompany);
   cut.walk(sampleCompany);
   double after = total.reduce(sampleCompany);
   assertEquals(before / 2.0d, after, 0);
 }
Ejemplo n.º 2
0
 @Test
 public void testTotal() {
   Total total = new Total();
   assertEquals(399747, total.reduce(sampleCompany), 0);
 }