Skip to content

Commit

Permalink
Enable JpiPomCustomizerIntegrationSpec on Gradle 8.4+
Browse files Browse the repository at this point in the history
Order of excluded elements has changed in generated pom
  • Loading branch information
sghill committed Nov 20, 2023
1 parent cb40b6c commit 7e7f79b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package org.jenkinsci.gradle.plugins.jpi
import groovy.json.JsonSlurper
import org.xmlunit.builder.DiffBuilder
import org.xmlunit.builder.Input
import org.xmlunit.diff.DefaultNodeMatcher
import org.xmlunit.diff.ElementSelectors

class JpiPomCustomizerIntegrationSpec extends IntegrationSpec {
private File settings
Expand Down Expand Up @@ -377,6 +379,7 @@ class JpiPomCustomizerIntegrationSpec extends IntegrationSpec {
private static void compareXml(String fileName, File actual) {
def diff = DiffBuilder.compare(Input.fromString(readResource(fileName)))
.withTest(Input.fromString(toXml(new XmlParser().parse(actual))))
.withNodeMatcher(new DefaultNodeMatcher(ElementSelectors.byNameAndText))
.checkForSimilar()
.ignoreComments()
.ignoreWhitespace()
Expand Down

0 comments on commit 7e7f79b

Please sign in to comment.