@ -147,4 +147,13 @@ public class Logic {
public boolean getClearedLeft() {
return this.clearedLeft;
}
public void sinkShip() {
// TODO Auto-generated method stub
public void setClearedAbove(boolean b) {
this.clearedAbove = b;
@ -203,4 +203,13 @@ class LogicTest {
assertEquals(logic.getClearedLeft(), false);
assertEquals(logic.getClearedRight(), false);
@Test
void testSetterClearedAbove() {
Logic logic = new Logic();
logic.setClearedAbove(true);
assertEquals(logic.getClearedAbove(), true);