refactor misc
This commit is contained in:
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user