File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/test/scala/com/yubico/webauthn/data Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ dependencies {
26
26
testImplementation(platform(project(" :test-platform" )))
27
27
testImplementation(project(" :yubico-util-scala" ))
28
28
testImplementation(" com.fasterxml.jackson.core:jackson-databind" )
29
+ testImplementation(" com.fasterxml.jackson.datatype:jackson-datatype-jdk8" )
29
30
testImplementation(" com.upokecenter:cbor" )
30
31
testImplementation(" junit:junit" )
31
32
testImplementation(" org.bouncycastle:bcpkix-jdk18on" )
Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ package com.yubico.webauthn.data
27
27
import com .fasterxml .jackson .core .`type` .TypeReference
28
28
import com .fasterxml .jackson .databind .ObjectMapper
29
29
import com .fasterxml .jackson .databind .exc .ValueInstantiationException
30
+ import com .fasterxml .jackson .databind .json .JsonMapper
30
31
import com .fasterxml .jackson .databind .node .BooleanNode
31
32
import com .fasterxml .jackson .databind .node .ObjectNode
32
33
import com .fasterxml .jackson .databind .node .TextNode
34
+ import com .fasterxml .jackson .datatype .jdk8 .Jdk8Module
33
35
import com .yubico .internal .util .JacksonCodecs
34
36
import com .yubico .webauthn .AssertionRequest
35
37
import com .yubico .webauthn .AssertionResult
@@ -55,7 +57,11 @@ class JsonIoSpec
55
57
with Matchers
56
58
with ScalaCheckDrivenPropertyChecks {
57
59
58
- def json : ObjectMapper = JacksonCodecs .json()
60
+ val json : ObjectMapper =
61
+ JsonMapper
62
+ .builder()
63
+ .addModule(new Jdk8Module ())
64
+ .build()
59
65
60
66
describe(" The class" ) {
61
67
You can’t perform that action at this time.
0 commit comments