Skip to content

Commit 84d6872

Browse files
committed
minor improvements to (still failing) test
1 parent 747f000 commit 84d6872

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/test/java/com/fasterxml/jackson/databind/filter/JsonIncludeTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,12 @@ public void testPropConfigOverridesForInclude() throws IOException
249249
ObjectMapper mapper;
250250

251251
// and then change inclusion criteria for either
252-
253252
mapper = new ObjectMapper();
254253
mapper.configOverride(Map.class)
255254
.setInclude(JsonInclude.Value.construct(JsonInclude.Include.NON_EMPTY, null));
256255
assertEquals(aposToQuotes("{'list':[]}"),
257256
mapper.writeValueAsString(empty));
258-
257+
259258
mapper = new ObjectMapper();
260259
mapper.configOverride(List.class)
261260
.setInclude(JsonInclude.Value.construct(JsonInclude.Include.NON_EMPTY, null));

src/test/java/com/fasterxml/jackson/failing/JsonInclude1327Test.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ public class JsonInclude1327Test
1717
{
1818
@JsonInclude(JsonInclude.Include.NON_EMPTY)
1919
static class Issue1327BeanEmpty {
20-
public String myString = "stuff";
2120
public List<String> myList = new ArrayList<String>();
2221
}
2322

2423
static class Issue1327BeanAlways {
2524
@JsonInclude(JsonInclude.Include.ALWAYS)
26-
public List<String> strings = new ArrayList<String>();
25+
public List<String> myList = new ArrayList<String>();
2726
}
2827

2928
/*

0 commit comments

Comments
 (0)