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.
1 parent 9bc7cbf commit 35dcd2fCopy full SHA for 35dcd2f
datatypes/src/test/java/com/fasterxml/jackson/datatype/jdk8/OptionalTest.java
@@ -267,12 +267,10 @@ public void testTypeResolution() throws Exception
267
}
268
269
// [modules-java8#372]
270
- public void testIssue372() throws Exception
+ public void testIssue372Deser() throws Exception
271
{
272
JsonNode input = MAPPER.getNodeFactory().textNode("abc");
273
- //JavaType type = MAPPER.getTypeFactory().constructType(Optional.class);
274
JavaType type = TypeFactory.defaultInstance().constructType(Optional.class);
275
- //JavaType type = MAPPER.constructType(Optional.class);
276
Optional<?> value = MAPPER.readValue(MAPPER.treeAsTokens(input), type);
277
assertEquals(Optional.of("abc"), value);
278
0 commit comments