|
|
|
@ -38,6 +38,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
|
* Integration tests for the Maven plugin's war support.
|
|
|
|
|
*
|
|
|
|
|
* @author Andy Wilkinson
|
|
|
|
|
* @author Scott Frederick
|
|
|
|
|
*/
|
|
|
|
|
@ExtendWith(MavenBuildExtension.class)
|
|
|
|
|
class WarIntegrationTests extends AbstractArchiveIntegrationTests {
|
|
|
|
@ -190,6 +191,16 @@ class WarIntegrationTests extends AbstractArchiveIntegrationTests {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@TestTemplate
|
|
|
|
|
void repackagedWarDoesNotContainClasspathIndex(MavenBuild mavenBuild) {
|
|
|
|
|
mavenBuild.project("war").execute((project) -> {
|
|
|
|
|
File repackaged = new File(project, "target/war-0.0.1.BUILD-SNAPSHOT.war");
|
|
|
|
|
assertThat(jar(repackaged))
|
|
|
|
|
.manifest((manifest) -> manifest.doesNotHaveAttribute("Spring-Boot-Classpath-Index"));
|
|
|
|
|
assertThat(jar(repackaged)).doesNotHaveEntryWithName("BOOT-INF/classpath.idx");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@TestTemplate
|
|
|
|
|
void whenEntryIsExcludedItShouldNotBePresentInTheRepackagedWar(MavenBuild mavenBuild) {
|
|
|
|
|
mavenBuild.project("war-exclude-entry").execute((project) -> {
|
|
|
|
|