Skip to content

Commit

Permalink
[NOJIRA]
Browse files Browse the repository at this point in the history
Added an attribute filter to force DiffBuilder to ignore sourceDirectory
  • Loading branch information
Bill Smith committed Aug 23, 2018
1 parent 4f29233 commit b6105f8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class TestHelpers {
static void generatedXmlIsTheSameAsExpectedXml(String expectedXmlResource, Document generatedXml) {
assert !DiffBuilder.compare(Input.fromStream(TestHelpers.getResourceAsStream(expectedXmlResource)))
.withTest(Input.fromDocument(generatedXml))
.withAttributeFilter({attribute -> !attribute.name.equals("sourceDirectory")})
.ignoreComments()
.ignoreWhitespace()
.build()
Expand Down

0 comments on commit b6105f8

Please sign in to comment.