refactor misc

This commit is contained in:
2025-05-03 20:49:03 +02:00
parent b18b53f195
commit a595b62fca
3 changed files with 9 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ import chess.model.Color;
import chess.model.Game;
class AppTest {
@Test void functionalRollback(){
private void functionalRollback(){
Game game = new Game();
CommandExecutor commandExecutor = new CommandExecutor(game);
@@ -37,6 +37,9 @@ class AppTest {
Game initialGame = new Game();
CommandExecutor initialCommandExecutor = new CommandExecutor(initialGame);
initialCommandExecutor.executeCommand(new NewGameCommand());
initialCommandExecutor.close();
commandExecutor.close();
assert(game.getBoard().equals(initialGame.getBoard()));