summaryrefslogtreecommitdiff
path: root/sw-server/src/test
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-08-20 15:36:49 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-08-20 15:44:47 +0200
commit53cdfdfd3d7f4a8fed08ee475b2d5936155f6875 (patch)
tree51410abd200b107b06c3ff144c77ba5a687a4480 /sw-server/src/test
parentUpgrade to Spring Boot 2.3.3 (diff)
downloadseven-wonders-53cdfdfd3d7f4a8fed08ee475b2d5936155f6875.tar.gz
seven-wonders-53cdfdfd3d7f4a8fed08ee475b2d5936155f6875.tar.bz2
seven-wonders-53cdfdfd3d7f4a8fed08ee475b2d5936155f6875.zip
Fix style & sort imports
Diffstat (limited to 'sw-server/src/test')
-rw-r--r--sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt10
1 files changed, 6 insertions, 4 deletions
diff --git a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt
index e4921ab4..194fb8f1 100644
--- a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt
+++ b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/test/TestUtils.kt
@@ -8,10 +8,12 @@ import org.springframework.messaging.MessageChannel
import org.springframework.messaging.simp.SimpMessagingTemplate
import kotlin.test.assertNotNull
-fun mockSimpMessagingTemplate(): SimpMessagingTemplate = SimpMessagingTemplate(object : MessageChannel {
- override fun send(message: Message<*>): Boolean = true
- override fun send(message: Message<*>, timeout: Long): Boolean = true
-})
+fun mockSimpMessagingTemplate(): SimpMessagingTemplate = SimpMessagingTemplate(
+ object : MessageChannel {
+ override fun send(message: Message<*>): Boolean = true
+ override fun send(message: Message<*>, timeout: Long): Boolean = true
+ }
+)
fun runAsyncTest(timeoutMillis: Long = 10000, block: suspend CoroutineScope.() -> Unit) = runBlocking {
val result = withTimeoutOrNull(timeoutMillis, block)
bgstack15