Skip to content

Commit

Permalink
Fix test ReservedValuesTest
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeSmaha authored and cowtowncoder committed Jul 18, 2019
1 parent 989274c commit 507d6e6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ public void testQuotingOfBooleanValues() throws Exception
"true", "True", "TRUE",
"false", "False", "FALSE",
"yes", "Yes", "YES",
"no" "No", "NO",
"no", "No", "NO",
"y", "Y", "n", "N",
"on", "On", "ON",
"off" "Off", "OFF"
"off", "Off", "OFF"
}) {
_testQuotingOfBooleanValues(value);
}
}

private void _testQuotingOfBooleanValues(String value) throws Exception
{
final Map<String, Integer> input = Collections.singletonMap("key", value);
final Map<String, String> input = Collections.singletonMap("key", value);
final String doc = trimDocMarker(MAPPER.writeValueAsString(input).trim());

assertEquals("key: \""+value+"\"", doc);
Expand Down

0 comments on commit 507d6e6

Please sign in to comment.