From d61ea160f141e411f3940fcb3d0604490f6bd0a6 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Fri, 31 May 2019 20:10:43 +0200 Subject: Remove unnecessary Resources deserializer in test JacksonMapper --- .../kotlin/org/luxons/sevenwonders/test/api/SevenWondersClient.kt | 7 ------- 1 file changed, 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() -- cgit