summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2019-05-31 20:10:43 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2019-05-31 20:10:43 +0200
commitd61ea160f141e411f3940fcb3d0604490f6bd0a6 (patch)
treedebebc9ce9d2f6afd191ff276b99fab54706d786
parentRemove extra space (diff)
downloadseven-wonders-d61ea160f141e411f3940fcb3d0604490f6bd0a6.tar.gz
seven-wonders-d61ea160f141e411f3940fcb3d0604490f6bd0a6.tar.bz2
seven-wonders-d61ea160f141e411f3940fcb3d0604490f6bd0a6.zip
Remove unnecessary Resources deserializer in test JacksonMapper
-rw-r--r--sw-server/src/test/kotlin/org/luxons/sevenwonders/test/api/SevenWondersClient.kt7
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()
bgstack15