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 618ace4 + 35dcd2f commit 09ec797Copy full SHA for 09ec797
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