Browse Source

Correct the URL that's called to test servlet context resources

See gh-8299
Closes gh-8525
pull/8582/head
Andy Wilkinson 9 years ago
parent
commit
d32c3a7f43
  1. 4
      spring-boot-integration-tests/spring-boot-integration-tests-embedded-servlet-container/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerJarDevelopmentIntegrationTests.java
  2. 4
      spring-boot-integration-tests/spring-boot-integration-tests-embedded-servlet-container/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerJarPackagingIntegrationTests.java
  3. 4
      spring-boot-integration-tests/spring-boot-integration-tests-embedded-servlet-container/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerWarDevelopmentIntegrationTests.java
  4. 4
      spring-boot-integration-tests/spring-boot-integration-tests-embedded-servlet-container/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerWarPackagingIntegrationTests.java

4
spring-boot-integration-tests/spring-boot-integration-tests-embedded-servlet-container/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerJarDevelopmentIntegrationTests.java

@ -59,8 +59,8 @@ public class EmbeddedServletContainerJarDevelopmentIntegrationTests
@Test @Test
public void metaInfResourceFromDependencyIsAvailableViaServletContext() public void metaInfResourceFromDependencyIsAvailableViaServletContext()
throws Exception { throws Exception {
ResponseEntity<String> entity = this.rest ResponseEntity<String> entity = this.rest.getForEntity(
.getForEntity("/nested-meta-inf-resource.txt", String.class); "/servletContext?/nested-meta-inf-resource.txt", String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK); assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
} }

4
spring-boot-integration-tests/spring-boot-integration-tests-embedded-servlet-container/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerJarPackagingIntegrationTests.java

@ -59,8 +59,8 @@ public class EmbeddedServletContainerJarPackagingIntegrationTests
@Test @Test
public void nestedMetaInfResourceIsAvailableViaServletContext() throws Exception { public void nestedMetaInfResourceIsAvailableViaServletContext() throws Exception {
ResponseEntity<String> entity = this.rest ResponseEntity<String> entity = this.rest.getForEntity(
.getForEntity("/nested-meta-inf-resource.txt", String.class); "/servletContext?/nested-meta-inf-resource.txt", String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK); assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
} }

4
spring-boot-integration-tests/spring-boot-integration-tests-embedded-servlet-container/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerWarDevelopmentIntegrationTests.java

@ -59,8 +59,8 @@ public class EmbeddedServletContainerWarDevelopmentIntegrationTests
@Test @Test
public void metaInfResourceFromDependencyIsAvailableViaServletContext() public void metaInfResourceFromDependencyIsAvailableViaServletContext()
throws Exception { throws Exception {
ResponseEntity<String> entity = this.rest ResponseEntity<String> entity = this.rest.getForEntity(
.getForEntity("/nested-meta-inf-resource.txt", String.class); "/servletContext?/nested-meta-inf-resource.txt", String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK); assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
} }

4
spring-boot-integration-tests/spring-boot-integration-tests-embedded-servlet-container/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerWarPackagingIntegrationTests.java

@ -59,8 +59,8 @@ public class EmbeddedServletContainerWarPackagingIntegrationTests
@Test @Test
public void nestedMetaInfResourceIsAvailableViaServletContext() throws Exception { public void nestedMetaInfResourceIsAvailableViaServletContext() throws Exception {
ResponseEntity<String> entity = this.rest ResponseEntity<String> entity = this.rest.getForEntity(
.getForEntity("/nested-meta-inf-resource.txt", String.class); "/servletContext?/nested-meta-inf-resource.txt", String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK); assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
} }

Loading…
Cancel
Save