|
@@ -52,6 +52,7 @@ public class praktikumHolonsTestObjectController {
|
|
|
controller.addNewElementIntoCategoryObject("Building", "House", "A", 1, -10);
|
|
|
for (int i = 2; i < 27; i++) {
|
|
|
controller.addNewElementIntoCategoryObject("Building", "House", adapter.generate(i), i, -10);
|
|
|
+ // n(n+1) / 2
|
|
|
assertTrue("Total Energy does not match",((HolonObject)mp.searchCatObj(mp.searchCat("Building"), "House")).getCurrentEnergy() == -1800 + ((i* (i+1)) / 2) * -10);
|
|
|
assertTrue("Number of Elements does not Match", ((HolonObject)mp.searchCatObj(mp.searchCat("Building"), "House")).getElements().size() == 6+i);
|
|
|
}
|
|
@@ -74,5 +75,9 @@ public class praktikumHolonsTestObjectController {
|
|
|
assertTrue("Element:TV was not Found", mp.searchEle((HolonObject)mp.searchCatObj(mp.searchCat("Building"), "House"), "TV") == null);
|
|
|
}
|
|
|
|
|
|
+ @Test
|
|
|
+ public void testAddingAndDeletingInCanvas() {
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|