We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6877a5c + 09ec797 commit 12b28baCopy full SHA for 12b28ba
datatypes/src/test/java/com/fasterxml/jackson/datatype/jdk8/OptionalTest.java
@@ -284,12 +284,10 @@ public void testTypeResolution() throws Exception
284
}
285
286
// [modules-java8#372]
287
- public void testIssue372() throws Exception
+ public void testIssue372Deser() throws Exception
288
{
289
JsonNode input = MAPPER.getNodeFactory().textNode("abc");
290
- //JavaType type = MAPPER.getTypeFactory().constructType(Optional.class);
291
JavaType type = TypeFactory.defaultInstance().constructType(Optional.class);
292
- //JavaType type = MAPPER.constructType(Optional.class);
293
Optional<?> value = MAPPER.readValue(MAPPER.treeAsTokens(input), type);
294
assertEquals(Optional.of("abc"), value);
295
0 commit comments