From 908beb15c81c33776518863556f4fc1310abaaef Mon Sep 17 00:00:00 2001 From: Max Wenzel Date: Fri, 14 Jan 2022 13:43:48 +0100 Subject: [PATCH] add Setter for ClearedRight --- src/main/java/de/tims/fleetstorm/ai/Logic.java | 3 +++ src/test/java/de/tims/fleetstorm/ai/LogicTest.java | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/main/java/de/tims/fleetstorm/ai/Logic.java b/src/main/java/de/tims/fleetstorm/ai/Logic.java index 9387e67..74bdffe 100644 --- a/src/main/java/de/tims/fleetstorm/ai/Logic.java +++ b/src/main/java/de/tims/fleetstorm/ai/Logic.java @@ -159,6 +159,9 @@ public class Logic { public void setClearedBelow(boolean b) { this.clearedBelow = b; + } + public void setClearedRight(boolean b) { + this.clearedRight = b; } } diff --git a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java b/src/test/java/de/tims/fleetstorm/ai/LogicTest.java index 52eff70..f3272da 100644 --- a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java +++ b/src/test/java/de/tims/fleetstorm/ai/LogicTest.java @@ -220,4 +220,12 @@ class LogicTest { assertEquals(logic.getClearedBelow(), true); } + @Test + void testSetterClearedRight() { + Logic logic = new Logic(); + logic.setClearedRight(true); + + assertEquals(logic.getClearedRight(), true); + } + }