Add support for WAR packaging

This commit is contained in:
Dave Syer
2014-05-29 16:26:47 +01:00
parent f0e07531cc
commit d6c77bb9ef
7 changed files with 107 additions and 18 deletions

View File

@@ -15,6 +15,12 @@ class IntegrationTests {
assertTrue('Wrong body:\n' + body, body.contains('action="/starter.zip"'))
}
@Test
void webIsAdded() {
String body = new TestRestTemplate().getForObject('http://localhost:' + port + '/pom.xml?packaging=war', String)
assertTrue('Wrong body:\n' + body, body.contains('spring-boot-starter-web'))
}
@Test
void infoHasExternalProperties() {
String body = new TestRestTemplate().getForObject('http://localhost:' + port + '/info', String)
@@ -36,7 +42,7 @@ class IntegrationTests {
}
// CLI compliled classes are not @ComponentScannable so we have to create
// CLI compiled classes are not @ComponentScannable so we have to create
// an explicit configuration for the test
@Configuration
@Import([app.MainController, app.Projects, app.TemporaryFileCleaner])