Avoid problem caused by new mime mappings in Framework snapshots

pull/8698/head
Andy Wilkinson 8 years ago
parent 25bf4a14cd
commit 937681af65

@ -71,7 +71,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Dave Syer * @author Dave Syer
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = "foo.bar=baz")
@DirtiesContext @DirtiesContext
@TestPropertySource(properties = "management.security.enabled=false") @TestPropertySource(properties = "management.security.enabled=false")
public class EndpointMvcIntegrationTests { public class EndpointMvcIntegrationTests {
@ -85,8 +85,8 @@ public class EndpointMvcIntegrationTests {
@Test @Test
public void envEndpointNotHidden() throws InterruptedException { public void envEndpointNotHidden() throws InterruptedException {
String body = new TestRestTemplate().getForObject( String body = new TestRestTemplate().getForObject(
"http://localhost:" + this.port + "/env/user.dir", String.class); "http://localhost:" + this.port + "/env/foo.bar", String.class);
assertThat(body).isNotNull().contains("spring-boot-actuator"); assertThat(body).isNotNull().contains("\"baz\"");
assertThat(this.interceptor.invoked()).isTrue(); assertThat(this.interceptor.invoked()).isTrue();
} }

Loading…
Cancel
Save