From 8a499a64894456672e03c90a80788d06ea91f4d7 Mon Sep 17 00:00:00 2001 From: Julius Dewender Date: Sun, 31 Jan 2021 17:34:41 +0100 Subject: [PATCH] moved checkMoveWithValidDestinationVar2 into whiteFarmerValidDestination --- .../src/test/java/de/fd/fh/FigureFarmerTest.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 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 0aed84c..1a680ab 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 @@ -14,7 +14,8 @@ class FigureFarmerTest @ParameterizedTest // row (src), col (src), row (dst), col (dst) @CsvSource({ - "6, 0, 5, 0" // a2 -> a3 + "6, 0, 5, 0", // a2 -> a3 + "4, 4, 3, 4" // e4 -> e5 }) void whiteFarmerValidDestination(int srcRow, int srcCol, int dstRow, int dstCol) { @@ -50,15 +51,4 @@ class FigureFarmerTest Figure f = new FigureFarmer(FigureFarmer.Color.White); assertFalse(f.moveAllowed(src, dst, field)); } - - @Test - void checkMoveWithValidDestinationVar2() // Bauer (w) steht in der Mitte vom Feld und geht 1 nach oben - { - int src = Figure.fieldLength * 4 + 4; - int dst = Figure.fieldLength * 3 + 4; - - Figure f = new FigureFarmer(FigureFarmer.Color.White); - assertTrue(f.moveAllowed(src, dst, field)); - } - } \ No newline at end of file