mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Fix order of 'actual' and 'expected' in XmlUnitUtils
This commit is contained in:
parent
7a58862794
commit
db150a850a
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public class XmlUnitUtils {
|
||||||
|
|
||||||
NormalizedSource expected = new NormalizedSource(new StreamSource(new StringReader(expectedString)));
|
NormalizedSource expected = new NormalizedSource(new StreamSource(new StringReader(expectedString)));
|
||||||
NormalizedSource actual = new NormalizedSource(new StreamSource(new StringReader(actualString)));
|
NormalizedSource actual = new NormalizedSource(new StreamSource(new StringReader(actualString)));
|
||||||
return XmlAssert.assertThat(expected).and(actual)
|
return XmlAssert.assertThat(actual).and(expected)
|
||||||
.ignoreChildNodesOrder()
|
.ignoreChildNodesOrder()
|
||||||
.withNodeMatcher(new DefaultNodeMatcher(ElementSelectors.byNameAndAllAttributes, ElementSelectors.byNameAndText))
|
.withNodeMatcher(new DefaultNodeMatcher(ElementSelectors.byNameAndAllAttributes, ElementSelectors.byNameAndText))
|
||||||
.normalizeWhitespace();
|
.normalizeWhitespace();
|
||||||
|
|
Loading…
Reference in a new issue