Ejemplo n.º 1
0
 @Test
 public void testLoadCorrectLevelsFromStringArray() {
   for (int i = 0; i < LEVEL_CORRECT_ARRAY.length; i++) {
     adapter.createGameUsingLevelString(LEVEL_CORRECT_ARRAY[i]);
     assertTrue("A correct level was identified wrongly as not correct.", adapter.isValidLevel());
   }
 }
Ejemplo n.º 2
0
 @Test
 public void testLoadNotCorrectLevelsFromStringArray() {
   for (int i = 0; i < LEVEL_NOT_CORRECT_ARRAY.length; i++) {
     adapter.createGameUsingLevelString(LEVEL_NOT_CORRECT_ARRAY[i]);
     assertFalse(
         "Level with index "
             + i
             + " of LoadLevelBigTest.LEVEL_NOT_CORRECT_ARRAY was identified worngly as correct.\n Please see java-comments for more information about the (not) correctness of the level. \n the level is:\n"
             + LEVEL_NOT_CORRECT_ARRAY[i],
         adapter.isValidLevel());
   }
 }