From 1eb77214f21fc6ddca26fb30ca74d0c00d563588 Mon Sep 17 00:00:00 2001 From: Max Wenzel Date: Fri, 14 Jan 2022 13:45:06 +0100 Subject: [PATCH] add Setter for ClearedLeft --- src/main/java/de/tims/fleetstorm/ai/Logic.java | 5 +++++ src/test/java/de/tims/fleetstorm/ai/LogicTest.java | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/src/main/java/de/tims/fleetstorm/ai/Logic.java b/src/main/java/de/tims/fleetstorm/ai/Logic.java index 74bdffe..11cbb85 100644 --- a/src/main/java/de/tims/fleetstorm/ai/Logic.java +++ b/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; + + } } diff --git a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java b/src/test/java/de/tims/fleetstorm/ai/LogicTest.java index f3272da..3171cb2 100644 --- a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java +++ b/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); + } + }