Пример #1
1
 /** Reads in the file and checks the expected values like the square and game parameters. */
 @Test
 public void normalLevelTest() throws FileNotFoundException {
   assertArrayEquals(square, level.getSquare());
   int[] params = level.getParams();
   assertEquals(1, params[0]);
   assertEquals(1, params[1]);
   assertEquals(8, params[2]);
   assertEquals(1, params[3]);
   assertEquals(1, params[4]);
 }
Пример #2
0
 /**
  * Reads in the file and checks the expected values like the square and game parameters based on
  * standing parameters back to back.
  */
 @Test
 public void normalLevelTest3() throws FileNotFoundException {
   fileName = "level11.txt";
   level = new Level(fileName);
   assertArrayEquals(square, level.getSquare());
   int[] params = level.getParams();
   assertEquals(1, params[0]);
   assertEquals(1, params[1]);
   assertEquals(8, params[2]);
   assertEquals(1, params[3]);
   assertEquals(1, params[4]);
 }