Skip to content

Commit b43d2f2

Browse files
committed
Remove version number from assertions
1 parent 9a3a3b1 commit b43d2f2

File tree

1 file changed

+3
-3
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/JarIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void whenAnEntryIsExcludedItDoesNotAppearInTheRepackagedJar(MavenBuild mavenBuil
196196
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-context")
197197
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-core")
198198
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-jcl")
199-
.doesNotHaveEntryWithName("BOOT-INF/lib/servlet-api-2.5.jar");
199+
.doesNotHaveEntryWithNameStartingWith("BOOT-INF/lib/servlet-api-");
200200
});
201201
}
202202

@@ -250,7 +250,7 @@ void whenAGroupIsExcludedNoEntriesInThatGroupAppearInTheRepackagedJar(MavenBuild
250250
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-context")
251251
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-core")
252252
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-jcl")
253-
.doesNotHaveEntryWithName("BOOT-INF/lib/log4j-api-2.4.1.jar");
253+
.doesNotHaveEntryWithNameStartingWith("BOOT-INF/lib/log4j-api-");
254254
});
255255
}
256256

@@ -388,7 +388,7 @@ void repackagedJarContainsTheLayersIndexByDefault(MavenBuild mavenBuild) {
388388
assertThat(layerIndex.get("application")).contains("BOOT-INF/lib/jar-release-0.0.1.RELEASE.jar",
389389
"BOOT-INF/lib/jar-snapshot-0.0.1.BUILD-SNAPSHOT.jar");
390390
assertThat(layerIndex.get("dependencies"))
391-
.anyMatch((dependency) -> dependency.startsWith("BOOT-INF/lib/log4j-api-2"));
391+
.anyMatch((dependency) -> dependency.startsWith("BOOT-INF/lib/log4j-api-"));
392392
}
393393
catch (IOException ex) {
394394
// Ignore

0 commit comments

Comments
 (0)