Browse Source

add Setter for ClearedLeft

fleetstorm
Max Wenzel 3 years ago
committed by Lorenz Hohmann
parent
commit
8a169d52de
  1. 5
      src/main/java/de/tims/fleetstorm/ai/Logic.java
  2. 8
      src/test/java/de/tims/fleetstorm/ai/LogicTest.java

5
src/main/java/de/tims/fleetstorm/ai/Logic.java

@ -164,4 +164,9 @@ public class Logic {
public void setClearedRight(boolean b) {
this.clearedRight = b;
}
public void setClearedLeft(boolean b) {
this.clearedLeft = b;
}
}

8
src/test/java/de/tims/fleetstorm/ai/LogicTest.java

@ -228,4 +228,12 @@ class LogicTest {
assertEquals(logic.getClearedRight(), true);
}
@Test
void testSetterClearedLeft() {
Logic logic = new Logic();
logic.setClearedLeft(true);
assertEquals(logic.getClearedLeft(), true);
}
}
Loading…
Cancel
Save