Fix test failure caused by MavenBuild upgrades

See gh-23937
This commit is contained in:
Phillip Webb
2020-10-28 14:07:27 -07:00
parent 3be4e225e7
commit b39d1910bc

View File

@@ -310,7 +310,8 @@ class JarIntegrationTests extends AbstractArchiveIntegrationTests {
"snapshot-dependencies", "application");
assertThat(layerIndex.get("application")).contains("BOOT-INF/lib/jar-release-0.0.1.RELEASE.jar",
"BOOT-INF/lib/jar-snapshot-0.0.1.BUILD-SNAPSHOT.jar");
assertThat(layerIndex.get("dependencies")).contains("BOOT-INF/lib/log4j-api-2.12.1.jar");
assertThat(layerIndex.get("dependencies"))
.anyMatch((dependency) -> dependency.startsWith("BOOT-INF/lib/log4j-api-2"));
}
catch (IOException ex) {
}