Beispiel #1
0
 @Test
 public void test_checkConditionBlackAnt() {
   // Creates a new Ant with colour Black.
   Ant a = new Ant(w, AntColour.Black);
   c.addAnt(a);
   assertTrue(c.checkCondition(Condition.BlackAnt) == true);
 }
Beispiel #2
0
 @Test
 public void test_checkConditionBlackAnt2() {
   // Creates a new Ant with colour Red.
   Ant a = new Ant(w, AntColour.Red);
   c.addAnt(a);
   assertTrue(c.checkCondition(Condition.BlackAnt) == false);
 }
Beispiel #3
0
 @Test
 public void test_checkConditionBlackHill() {
   c.addAntHill(AntColour.Black);
   assertTrue(c.checkCondition(Condition.BlackHill) == true);
 }
Beispiel #4
0
 @Test
 public void test_checkConditionRedAnt2() {
   Ant a = new Ant(w, AntColour.Black);
   c.addAnt(a);
   assertTrue(c.checkCondition(Condition.RedAnt) == false);
 }
Beispiel #5
0
 @Test
 public void test_checkConditionRedAnt() {
   Ant a = new Ant(w, AntColour.Red);
   c.addAnt(a);
   assertTrue(c.checkCondition(Condition.RedAnt) == true);
 }
Beispiel #6
0
 @Test
 public void test_checkConditionRock() {
   c.addRock();
   assertTrue(c.checkCondition(Condition.Rock) == true);
 }
Beispiel #7
0
 @Test
 public void test_checkConditionFood() {
   c.addFood();
   assertTrue(c.checkCondition(Condition.Food) == true);
 }
Beispiel #8
0
 @Test
 public void test_checkConditionRedMarker() {
   c.mark(4, AntColour.Red);
   assertTrue(c.checkCondition(Condition.RedMarker) == true);
 }
Beispiel #9
0
 @Test
 public void test_checkConditionBlackMarker() {
   c.mark(2, AntColour.Black);
   assertTrue(c.checkCondition(Condition.BlackMarker) == true);
 }
Beispiel #10
0
 @Test
 public void test_checkConditionRedHill() {
   c.addAntHill(AntColour.Red);
   assertTrue(c.checkCondition(Condition.RedHill) == true);
 }