Skip to content

Commit 147171c

Browse files
committed
...
1 parent de592b1 commit 147171c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/test/java/tools/jackson/dataformat/xml/ser/MultidimArray556Test.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ public void testNestedListFailsFast() throws Exception
5353
@Test
5454
public void testLegacyFlatteningWhenFeatureDisabled() throws Exception
5555
{
56-
XmlMapper mapper = XmlMapper.builder()
57-
.disable(XmlWriteFeature.FAIL_ON_NESTED_ARRAYS)
58-
.build();
59-
String xml = mapper.writeValueAsString(new boolean[][] { { true }, { false } });
60-
assertNotNull(xml);
56+
String xml = MAPPER.writer()
57+
.without(XmlWriteFeature.FAIL_ON_NESTED_ARRAYS)
58+
.writeValueAsString(new boolean[][] { { true }, { false } });
59+
assertEquals("<booleans><item>true</item><item>false</item></booleans>", xml);
6160
}
6261

6362
// Eventual goal: a 2D array should round-trip with proper nesting.

0 commit comments

Comments
 (0)