Skip to content

Commit

Permalink
Change test for FasterXML#36, assertion was not true
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 10, 2017
1 parent 2c81919 commit 3470af8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,15 @@ public void testWithCustomDeserializer() throws Exception
assertEquals("foobar", w.value.get());
}

// [modules-java8#36]
public void testWithCustomDeserializerIfOptionalAbsent() throws Exception
{
// 10-Aug-2017, tatu: Actually this is not true: missing value does not trigger
// specific handling
/*
assertEquals(Optional.empty(), MAPPER.readValue("{}",
CaseChangingStringWrapper.class).value);
*/

assertEquals(Optional.empty(), MAPPER.readValue(aposToQuotes("{'value':null}"),
CaseChangingStringWrapper.class).value);
Expand Down

0 comments on commit 3470af8

Please sign in to comment.