Skip to content

Commit 35dcd2f

Browse files
committed
...
1 parent 9bc7cbf commit 35dcd2f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

datatypes/src/test/java/com/fasterxml/jackson/datatype/jdk8/OptionalTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,10 @@ public void testTypeResolution() throws Exception
267267
}
268268

269269
// [modules-java8#372]
270-
public void testIssue372() throws Exception
270+
public void testIssue372Deser() throws Exception
271271
{
272272
JsonNode input = MAPPER.getNodeFactory().textNode("abc");
273-
//JavaType type = MAPPER.getTypeFactory().constructType(Optional.class);
274273
JavaType type = TypeFactory.defaultInstance().constructType(Optional.class);
275-
//JavaType type = MAPPER.constructType(Optional.class);
276274
Optional<?> value = MAPPER.readValue(MAPPER.treeAsTokens(input), type);
277275
assertEquals(Optional.of("abc"), value);
278276
}

0 commit comments

Comments
 (0)