From db2724722a6ffd321742bdc0c8754f3ac93f42a3 Mon Sep 17 00:00:00 2001 From: Julius Dewender Date: Sun, 31 Jan 2021 17:33:00 +0100 Subject: [PATCH] moved whiteFarmerInvalidDestinationDownVar2 into whiteFarmerInvalidDestinationDown --- .../src/test/java/de/fd/fh/FigureFarmerTest.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/fh.fd.ci.client/src/test/java/de/fd/fh/FigureFarmerTest.java b/fh.fd.ci.client/src/test/java/de/fd/fh/FigureFarmerTest.java index 598a93f..0aed84c 100644 --- a/fh.fd.ci.client/src/test/java/de/fd/fh/FigureFarmerTest.java +++ b/fh.fd.ci.client/src/test/java/de/fd/fh/FigureFarmerTest.java @@ -29,7 +29,8 @@ class FigureFarmerTest @ParameterizedTest // row (src), col (src), row (dst), col (dst) @CsvSource({ - "6, 0, 7, 0" // a2 -> a1 + "6, 0, 7, 0", // a2 -> a1 + "4, 4, 5, 4" // e4 -> e3 }) void whiteFarmerInvalidDestinationDown(int srcRow, int srcCol, int dstRow, int dstCol) // statt nach "oben" wird nach "unten" gegangen { @@ -60,13 +61,4 @@ class FigureFarmerTest assertTrue(f.moveAllowed(src, dst, field)); } - @Test - void whiteFarmerInvalidDestinationDownVar2() // Bauer (w) steht in der Mitte vom Feld und geht 1 nach unten - { - int src = Figure.fieldLength * 4 + 4; - int dst = Figure.fieldLength * 5 + 4; - - Figure f = new FigureFarmer(FigureFarmer.Color.White); - assertFalse(f.moveAllowed(src, dst, field)); - } } \ No newline at end of file