Browse Source

corrected test newGameInitializationFigurePositions

-> other fields should be initial null
feat-figureMovement
Julius Dewender 3 years ago
parent
commit
2e025f35ad
  1. 14
      fh.fd.ci.client/src/test/java/de/fd/fh/GameTest.java

14
fh.fd.ci.client/src/test/java/de/fd/fh/GameTest.java

@ -25,15 +25,19 @@ class GameTest
for (int i = 0; i < Figure.fieldLength; i++) // row for (int i = 0; i < Figure.fieldLength; i++) // row
{ {
if (i == Game.whiteRowOther
|| i == Game.whiteRowFarmer
|| i == Game.blackRowOther
|| i == Game.blackRowFarmer)
for (int j = 0; j < Figure.fieldLength; j++) // col
{ {
for (int j = 0; j < Figure.fieldLength; j++) // col
if (i == Game.whiteRowOther
|| i == Game.whiteRowFarmer
|| i == Game.blackRowOther
|| i == Game.blackRowFarmer)
{ {
assertNotEquals(null, g.mField[i * Figure.fieldLength + j]); assertNotEquals(null, g.mField[i * Figure.fieldLength + j]);
} }
else
{
assertEquals(null, g.mField[i * Figure.fieldLength + j]);
}
} }
} }
} }
Loading…
Cancel
Save