mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-26 21:53:14 +08:00
Add support for WAR packaging
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user