Browse Source

refactoring: created variable for expected result

main
fdai7012 11 months ago
parent
commit
a9dd9a8123
  1. 4
      src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java

4
src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java

@ -97,11 +97,13 @@ class VisualizerPlainTextUltraTest {
gameManager.Pause();
String expectedEnd = " Paused! \n\n";
// act
vptu.Update();;
String result = (String)vptu.GetOutput();
// assert
assertThat(result).endsWith(" Paused! \n\n");
assertThat(result).endsWith(expectedEnd);
}
}
Loading…
Cancel
Save