Add provided scope to war

This commit is contained in:
Dave Syer
2014-06-04 15:31:11 +01:00
parent 32b99a8350
commit 4f772e4a99
4 changed files with 50 additions and 32 deletions

View File

@@ -28,9 +28,17 @@ class IntegrationTests {
}
@Test
void webIsAdded() {
void webIsAddedPom() {
String body = new TestRestTemplate().getForObject('http://localhost:' + port + '/pom.xml?packaging=war', String)
assertTrue('Wrong body:\n' + body, body.contains('spring-boot-starter-web'))
assertTrue('Wrong body:\n' + body, body.contains('provided'))
}
@Test
void webIsAddedGradle() {
String body = new TestRestTemplate().getForObject('http://localhost:' + port + '/build.gradle?packaging=war', String)
assertTrue('Wrong body:\n' + body, body.contains('spring-boot-starter-web'))
assertTrue('Wrong body:\n' + body, body.contains('providedRuntime'))
}
@Test