Skip to content
Snippets Groups Projects
Commit 087b52d6 authored by JustAnotherChristoph's avatar JustAnotherChristoph Committed by Christopher Konkel
Browse files

Replaced GSON with Jackson ObjectMapper in IOHandlerTest

parent 35bfd5c2
No related branches found
No related tags found
1 merge request!292Replace GSON with Jackson ObjectMapper
This commit is part of merge request !292. Comments created here will be created in the context of that merge request.
package rocks.theodolite.core
import com.google.gson.GsonBuilder
import com.fasterxml.jackson.databind.ObjectMapper
import io.quarkus.test.junit.QuarkusTest
import org.hamcrest.CoreMatchers.containsString
import org.hamcrest.MatcherAssert.assertThat
......@@ -121,7 +121,7 @@ internal class IOHandlerTest {
objectToSave = testContentResource
)
val expected = GsonBuilder().enableComplexMapKeySerialization().setPrettyPrinting().create().toJson(testContentResource)
val expected = ObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(testContentResource)
assertEquals(
expected,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment