Commit d32c3a7f authored by Andy Wilkinson's avatar Andy Wilkinson

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

See gh-8299
Closes gh-8525
parent a2cf0455
...@@ -59,8 +59,8 @@ public class EmbeddedServletContainerJarDevelopmentIntegrationTests ...@@ -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);
} }
......
...@@ -59,8 +59,8 @@ public class EmbeddedServletContainerJarPackagingIntegrationTests ...@@ -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);
} }
......
...@@ -59,8 +59,8 @@ public class EmbeddedServletContainerWarDevelopmentIntegrationTests ...@@ -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);
} }
......
...@@ -59,8 +59,8 @@ public class EmbeddedServletContainerWarPackagingIntegrationTests ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment