summaryrefslogtreecommitdiff
path: root/sw-server/src/test/kotlin/org
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-24 20:34:00 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-24 20:34:00 +0200
commit6ceaed6126d43e2f2beed04331c50effa0b32afa (patch)
tree20aafd76feb9fb9deb029ce840163f53a8d69eed /sw-server/src/test/kotlin/org
parentMake heroku use JRE 11 (diff)
downloadseven-wonders-6ceaed6126d43e2f2beed04331c50effa0b32afa.tar.gz
seven-wonders-6ceaed6126d43e2f2beed04331c50effa0b32afa.tar.bz2
seven-wonders-6ceaed6126d43e2f2beed04331c50effa0b32afa.zip
Simplify injection and fix tests
Diffstat (limited to 'sw-server/src/test/kotlin/org')
-rw-r--r--sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserControllerTest.kt2
-rw-r--r--sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/LobbyControllerTest.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserControllerTest.kt b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserControllerTest.kt
index 88e04c14..d252e3f0 100644
--- a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserControllerTest.kt
+++ b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserControllerTest.kt
@@ -26,7 +26,7 @@ class GameBrowserControllerTest {
playerRepository = PlayerRepository()
val lobbyRepository = LobbyRepository()
val template = mockSimpMessagingTemplate()
- val lobbyController = LobbyController(lobbyRepository, playerRepository, template)
+ val lobbyController = LobbyController(lobbyRepository, playerRepository, template, "UNUSED")
gameBrowserController = GameBrowserController(lobbyController, lobbyRepository, playerRepository, template)
}
diff --git a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/LobbyControllerTest.kt b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/LobbyControllerTest.kt
index e8b2a9c0..31a3c9c9 100644
--- a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/LobbyControllerTest.kt
+++ b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/LobbyControllerTest.kt
@@ -35,7 +35,7 @@ class LobbyControllerTest {
val template = mockSimpMessagingTemplate()
playerRepository = PlayerRepository()
lobbyRepository = LobbyRepository()
- lobbyController = LobbyController(lobbyRepository, playerRepository, template)
+ lobbyController = LobbyController(lobbyRepository, playerRepository, template, "UNUSED")
}
@Test
bgstack15