From 89f9d455eda594c3e2bad8c3f08769ab3aed4f3b Mon Sep 17 00:00:00 2001 From: fdai7012 Date: Thu, 8 Feb 2024 04:16:39 +0100 Subject: [PATCH] changed gameManager test to use newer visualizer --- src/test/java/pacmanTests/GameManagerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/pacmanTests/GameManagerTest.java b/src/test/java/pacmanTests/GameManagerTest.java index 1b093b0..7c1127d 100644 --- a/src/test/java/pacmanTests/GameManagerTest.java +++ b/src/test/java/pacmanTests/GameManagerTest.java @@ -31,14 +31,14 @@ class GameManagerTest { // arrange GameManager gameManager = new GameManager(); - gameManager.visualizer = new VisualizerPlainText(gameManager); - VisualizerPlainText vpt = (VisualizerPlainText) gameManager.visualizer; + gameManager.visualizer = new VisualizerPlainTextUltra(gameManager); + VisualizerPlainTextUltra vptu = (VisualizerPlainTextUltra) gameManager.visualizer; // act - String initialVptOutput = (String)vpt.GetOutput(); + String initialVptOutput = (String)vptu.GetOutput(); gameManager.Update(); - String updatedVptOutput = (String)vpt.GetOutput(); + String updatedVptOutput = (String)vptu.GetOutput(); // assert