diff options
author | jbion <joffrey.bion@amadeus.com> | 2019-02-19 22:15:42 +0100 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2019-02-19 22:24:21 +0100 |
commit | 02691e0981e762fdb1f2a1d8aceec10bd8dc7c99 (patch) | |
tree | 0fbd466472748047216eb49b15f223ba417e26ac /backend/src/test/kotlin/org/luxons | |
parent | Migrate backend and game-engine builds to kotlin DSL (diff) | |
download | seven-wonders-02691e0981e762fdb1f2a1d8aceec10bd8dc7c99.tar.gz seven-wonders-02691e0981e762fdb1f2a1d8aceec10bd8dc7c99.tar.bz2 seven-wonders-02691e0981e762fdb1f2a1d8aceec10bd8dc7c99.zip |
Migrate JUnits to kotlin-test
Diffstat (limited to 'backend/src/test/kotlin/org/luxons')
9 files changed, 29 insertions, 29 deletions
diff --git a/backend/src/test/kotlin/org/luxons/sevenwonders/SevenWondersTest.kt b/backend/src/test/kotlin/org/luxons/sevenwonders/SevenWondersTest.kt index b98d9b91..7fea4b2e 100644 --- a/backend/src/test/kotlin/org/luxons/sevenwonders/SevenWondersTest.kt +++ b/backend/src/test/kotlin/org/luxons/sevenwonders/SevenWondersTest.kt @@ -1,9 +1,6 @@ package org.luxons.sevenwonders import org.junit.After -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNotNull -import org.junit.Assert.assertNull import org.junit.Before import org.junit.Test import org.junit.runner.RunWith @@ -16,6 +13,9 @@ import org.springframework.test.context.junit4.SpringRunner import java.util.concurrent.ExecutionException import java.util.concurrent.TimeUnit import java.util.concurrent.TimeoutException +import kotlin.test.assertEquals +import kotlin.test.assertNotNull +import kotlin.test.assertNull @RunWith(SpringRunner::class) @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) diff --git a/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/GameBrowserControllerTest.kt b/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/GameBrowserControllerTest.kt index 4c401df6..b22b8408 100644 --- a/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/GameBrowserControllerTest.kt +++ b/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/GameBrowserControllerTest.kt @@ -1,8 +1,5 @@ package org.luxons.sevenwonders.controllers -import org.junit.Assert.assertEquals -import org.junit.Assert.assertFalse -import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Test import org.luxons.sevenwonders.actions.CreateGameAction @@ -13,6 +10,9 @@ import org.luxons.sevenwonders.repositories.LobbyRepository import org.luxons.sevenwonders.repositories.PlayerNotFoundException import org.luxons.sevenwonders.repositories.PlayerRepository import org.luxons.sevenwonders.test.TestUtils +import kotlin.test.assertEquals +import kotlin.test.assertFalse +import kotlin.test.assertTrue class GameBrowserControllerTest { diff --git a/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/HomeControllerTest.kt b/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/HomeControllerTest.kt index 65989db6..3374a025 100644 --- a/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/HomeControllerTest.kt +++ b/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/HomeControllerTest.kt @@ -1,9 +1,9 @@ package org.luxons.sevenwonders.controllers -import org.junit.Assert.assertEquals import org.junit.Test import org.luxons.sevenwonders.actions.ChooseNameAction import org.luxons.sevenwonders.repositories.PlayerRepository +import kotlin.test.assertEquals class HomeControllerTest { diff --git a/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/LobbyControllerTest.kt b/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/LobbyControllerTest.kt index 5ace12af..ac138921 100644 --- a/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/LobbyControllerTest.kt +++ b/backend/src/test/kotlin/org/luxons/sevenwonders/controllers/LobbyControllerTest.kt @@ -1,9 +1,5 @@ package org.luxons.sevenwonders.controllers -import org.junit.Assert.assertEquals -import org.junit.Assert.assertFalse -import org.junit.Assert.assertSame -import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Test import org.luxons.sevenwonders.actions.ReorderPlayersAction @@ -21,6 +17,10 @@ import org.luxons.sevenwonders.repositories.PlayerRepository import org.luxons.sevenwonders.test.TestUtils import java.util.Arrays import java.util.HashMap +import kotlin.test.assertEquals +import kotlin.test.assertFalse +import kotlin.test.assertSame +import kotlin.test.assertTrue class LobbyControllerTest { diff --git a/backend/src/test/kotlin/org/luxons/sevenwonders/lobby/LobbyTest.kt b/backend/src/test/kotlin/org/luxons/sevenwonders/lobby/LobbyTest.kt index aae431f4..66910924 100644 --- a/backend/src/test/kotlin/org/luxons/sevenwonders/lobby/LobbyTest.kt +++ b/backend/src/test/kotlin/org/luxons/sevenwonders/lobby/LobbyTest.kt @@ -1,10 +1,5 @@ package org.luxons.sevenwonders.lobby -import org.junit.Assert.assertEquals -import org.junit.Assert.assertFalse -import org.junit.Assert.assertNotNull -import org.junit.Assert.assertSame -import org.junit.Assert.assertTrue import org.junit.Assume.assumeTrue import org.junit.Before import org.junit.BeforeClass @@ -23,6 +18,11 @@ import org.luxons.sevenwonders.lobby.Lobby.PlayerOverflowException import org.luxons.sevenwonders.lobby.Lobby.PlayerUnderflowException import org.luxons.sevenwonders.lobby.Lobby.UnknownPlayerException import java.util.Arrays +import kotlin.test.assertEquals +import kotlin.test.assertFalse +import kotlin.test.assertNotNull +import kotlin.test.assertSame +import kotlin.test.assertTrue @RunWith(Theories::class) class LobbyTest { diff --git a/backend/src/test/kotlin/org/luxons/sevenwonders/repositories/LobbyRepositoryTest.kt b/backend/src/test/kotlin/org/luxons/sevenwonders/repositories/LobbyRepositoryTest.kt index d22b48e5..84f7eacf 100644 --- a/backend/src/test/kotlin/org/luxons/sevenwonders/repositories/LobbyRepositoryTest.kt +++ b/backend/src/test/kotlin/org/luxons/sevenwonders/repositories/LobbyRepositoryTest.kt @@ -1,12 +1,12 @@ package org.luxons.sevenwonders.repositories -import org.junit.Assert.assertNotNull -import org.junit.Assert.assertSame -import org.junit.Assert.assertTrue -import org.junit.Assert.fail import org.junit.Before import org.junit.Test import org.luxons.sevenwonders.lobby.Player +import kotlin.test.assertNotNull +import kotlin.test.assertSame +import kotlin.test.assertTrue +import kotlin.test.fail class LobbyRepositoryTest { diff --git a/backend/src/test/kotlin/org/luxons/sevenwonders/repositories/PlayerRepositoryTest.kt b/backend/src/test/kotlin/org/luxons/sevenwonders/repositories/PlayerRepositoryTest.kt index ce370ef5..e364275d 100644 --- a/backend/src/test/kotlin/org/luxons/sevenwonders/repositories/PlayerRepositoryTest.kt +++ b/backend/src/test/kotlin/org/luxons/sevenwonders/repositories/PlayerRepositoryTest.kt @@ -1,11 +1,11 @@ package org.luxons.sevenwonders.repositories -import org.junit.Assert.assertEquals -import org.junit.Assert.assertFalse -import org.junit.Assert.assertSame -import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Test +import kotlin.test.assertEquals +import kotlin.test.assertFalse +import kotlin.test.assertSame +import kotlin.test.assertTrue class PlayerRepositoryTest { diff --git a/backend/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersSession.kt b/backend/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersSession.kt index e46d4991..33aa536f 100644 --- a/backend/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersSession.kt +++ b/backend/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersSession.kt @@ -2,13 +2,13 @@ package org.luxons.sevenwonders.test.api import org.hildan.jackstomp.Channel import org.hildan.jackstomp.JackstompSession -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNotNull -import org.junit.Assert.assertTrue import org.luxons.sevenwonders.actions.ChooseNameAction import org.luxons.sevenwonders.actions.CreateGameAction import org.luxons.sevenwonders.actions.JoinGameAction import org.luxons.sevenwonders.errors.ErrorDTO +import kotlin.test.assertEquals +import kotlin.test.assertNotNull +import kotlin.test.assertTrue class SevenWondersSession(val jackstompSession: JackstompSession) { diff --git a/backend/src/test/kotlin/org/luxons/sevenwonders/validation/DestinationAccessValidatorTest.kt b/backend/src/test/kotlin/org/luxons/sevenwonders/validation/DestinationAccessValidatorTest.kt index 45e58b7f..88853b6c 100644 --- a/backend/src/test/kotlin/org/luxons/sevenwonders/validation/DestinationAccessValidatorTest.kt +++ b/backend/src/test/kotlin/org/luxons/sevenwonders/validation/DestinationAccessValidatorTest.kt @@ -1,13 +1,13 @@ package org.luxons.sevenwonders.validation -import org.junit.Assert.assertFalse -import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Test import org.luxons.sevenwonders.lobby.Lobby import org.luxons.sevenwonders.lobby.Player import org.luxons.sevenwonders.repositories.LobbyNotFoundException import org.luxons.sevenwonders.repositories.LobbyRepository +import kotlin.test.assertFalse +import kotlin.test.assertTrue class DestinationAccessValidatorTest { |