Package com.chess.backend.repository
Class GameRepositoryMock
java.lang.Object
com.chess.backend.repository.GameRepositoryMock
- All Implemented Interfaces:
IGameRepository
A GameRepository mocking class for testing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createNewGame
(Integer gameId, ChessGame game) void
createNewGame
(Integer gameId, ChessGame game, List<EventObject> events) void
updateGame
(Integer gameId, ChessGame game) void
updateGame
(Integer gameId, ChessGame game, List<EventObject> events)
-
Constructor Details
-
GameRepositoryMock
public GameRepositoryMock()
-
-
Method Details
-
getGame
- Specified by:
getGame
in interfaceIGameRepository
-
createNewGame
- Specified by:
createNewGame
in interfaceIGameRepository
-
createNewGame
- Specified by:
createNewGame
in interfaceIGameRepository
-
updateGame
- Specified by:
updateGame
in interfaceIGameRepository
-
updateGame
- Specified by:
updateGame
in interfaceIGameRepository
-