Browse Source

renamed tests

feat-figureMovement
JD 4 years ago
parent
commit
d74706ca41
  1. 5
      fh.fd.ci.client/src/test/java/de/fd/fh/FigureFarmerTest.java

5
fh.fd.ci.client/src/test/java/de/fd/fh/FigureFarmerTest.java

@ -18,7 +18,7 @@ class FigureFarmerTest
"1, 1, 0, 2, 0" // black: a1 -> a2 "1, 1, 0, 2, 0" // black: a1 -> a2
}) })
void whiteFarmerValidDestination(int color, int srcRow, int srcCol, int dstRow, int dstCol)
void farmerValidDestination(int color, int srcRow, int srcCol, int dstRow, int dstCol)
{ {
int src = Figure.fieldLength * srcRow + srcCol; int src = Figure.fieldLength * srcRow + srcCol;
int dst = Figure.fieldLength * dstRow + dstCol; int dst = Figure.fieldLength * dstRow + dstCol;
@ -37,14 +37,13 @@ class FigureFarmerTest
assertTrue(f.moveAllowed(src, dst, field)); assertTrue(f.moveAllowed(src, dst, field));
} }
// weißer Bauer
@ParameterizedTest @ParameterizedTest
// row (src), col (src), row (dst), col (dst) // row (src), col (src), row (dst), col (dst)
@CsvSource({ @CsvSource({
"6, 0, 7, 0", // a2 -> a1 "6, 0, 7, 0", // a2 -> a1
"4, 4, 5, 4" // e4 -> e3 "4, 4, 5, 4" // e4 -> e3
}) })
void whiteFarmerInvalidDestinationDown(int srcRow, int srcCol, int dstRow, int dstCol) // statt nach "oben" wird nach "unten" gegangen
void farmerInvalidDestinationDown(int srcRow, int srcCol, int dstRow, int dstCol) // statt nach "oben" wird nach "unten" gegangen
{ {
int src = Figure.fieldLength * srcRow + srcCol; int src = Figure.fieldLength * srcRow + srcCol;
int dst = Figure.fieldLength * dstRow + dstCol; int dst = Figure.fieldLength * dstRow + dstCol;

Loading…
Cancel
Save