diff --git a/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java b/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java index 965c40c..50a9848 100644 --- a/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java +++ b/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); } }