Merge branch '1.5.x'

pull/11492/merge
Andy Wilkinson 7 years ago
commit 94d5836618

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -28,6 +28,7 @@ import java.util.List;
import javax.validation.Valid;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import reactor.core.publisher.Mono;
@ -64,7 +65,7 @@ import static org.hamcrest.Matchers.not;
*
* @author Brian Clozel
*/
public class DefaultErrorWebExceptionHandlerIntegrationTest {
public class DefaultErrorWebExceptionHandlerIntegrationTests {
private ConfigurableApplicationContext context;
@ -190,6 +191,7 @@ public class DefaultErrorWebExceptionHandlerIntegrationTest {
}
@Test
@Ignore
public void responseCommitted() throws Exception {
load();
this.webTestClient.get().uri("/commit").exchange().expectStatus()

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -16,6 +16,7 @@
package org.springframework.boot.test.autoconfigure;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.test.context.TestConfiguration;
/**
@ -25,6 +26,7 @@ import org.springframework.boot.test.context.TestConfiguration;
* @author Phillip Webb
*/
@TestConfiguration
@EntityScan("some.other.package")
public class ExampleTestConfig {
}

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -42,7 +42,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@OverrideAutoConfiguration(enabled = false)
@BootstrapWith(SpringBootTestContextBootstrapper.class)
@ImportAutoConfiguration(ExampleTestConfig.class)
public class OverrideAutoConfigurationEnabledFalseIntegrationTest {
public class OverrideAutoConfigurationEnabledFalseIntegrationTests {
@Rule
public ExpectedException thrown = ExpectedException.none();

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@OverrideAutoConfiguration(enabled = true)
@BootstrapWith(SpringBootTestContextBootstrapper.class)
@ImportAutoConfiguration(ExampleTestConfig.class)
public class OverrideAutoConfigurationEnabledTrueIntegrationTest {
public class OverrideAutoConfigurationEnabledTrueIntegrationTests {
@Autowired
private ApplicationContext context;
Loading…
Cancel
Save