diff options
Diffstat (limited to 'sw-server')
-rw-r--r-- | sw-server/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersClient.kt | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sw-server/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersClient.kt b/sw-server/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersClient.kt index a89ff77a..95384e06 100644 --- a/sw-server/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersClient.kt +++ b/sw-server/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersClient.kt @@ -1,11 +1,8 @@ package org.luxons.sevenwonders.test.api -import com.fasterxml.jackson.databind.module.SimpleModule import com.fasterxml.jackson.module.kotlin.KotlinModule import org.hildan.jackstomp.JackstompClient import org.luxons.sevenwonders.config.SEVEN_WONDERS_WS_ENDPOINT -import org.luxons.sevenwonders.engine.resources.MutableResources -import org.luxons.sevenwonders.engine.resources.Resources import org.springframework.messaging.converter.MappingJackson2MessageConverter import java.util.concurrent.ExecutionException import java.util.concurrent.TimeoutException @@ -15,11 +12,7 @@ class SevenWondersClient { private val client: JackstompClient init { - val customMappingsModule = SimpleModule("ConcreteResourcesDeserializationModule") - customMappingsModule.addAbstractTypeMapping(Resources::class.java, MutableResources::class.java) - val mappingJackson2MessageConverter = MappingJackson2MessageConverter() - mappingJackson2MessageConverter.objectMapper.registerModule(customMappingsModule) mappingJackson2MessageConverter.objectMapper.registerModule(KotlinModule()) client = JackstompClient() |