-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
908a13c
commit 6f1f9d6
Showing
8 changed files
with
87 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
package util | ||
|
||
import org.junit.jupiter.api.BeforeEach | ||
import routes.lobby.LobbyService | ||
import routes.session.SessionService | ||
import store.MemoryUserConnectionStore | ||
import store.SessionStore | ||
import testCore.AbstractTest | ||
import util.ServerGlobals.sessionStore | ||
import util.ServerGlobals.uscStore | ||
|
||
/** Clear down stores between tests. Can be replaced with proper DI once legacy code is gone */ | ||
abstract class ApplicationTest : AbstractTest() { | ||
@BeforeEach | ||
fun beforeEach() { | ||
ServerGlobals.sessionStore = SessionStore() | ||
ServerGlobals.uscStore = MemoryUserConnectionStore() | ||
sessionStore = SessionStore() | ||
uscStore = MemoryUserConnectionStore() | ||
ServerGlobals.lobbyService = LobbyService(ServerGlobals.server, sessionStore, uscStore) | ||
ServerGlobals.sessionService = SessionService(sessionStore, uscStore) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters