We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de592b1 commit 147171cCopy full SHA for 147171c
1 file changed
src/test/java/tools/jackson/dataformat/xml/ser/MultidimArray556Test.java
@@ -53,11 +53,10 @@ public void testNestedListFailsFast() throws Exception
53
@Test
54
public void testLegacyFlatteningWhenFeatureDisabled() throws Exception
55
{
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);
+ String xml = MAPPER.writer()
+ .without(XmlWriteFeature.FAIL_ON_NESTED_ARRAYS)
+ .writeValueAsString(new boolean[][] { { true }, { false } });
+ assertEquals("<booleans><item>true</item><item>false</item></booleans>", xml);
61
}
62
63
// Eventual goal: a 2D array should round-trip with proper nesting.
0 commit comments