Commit 94d58366 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge branch '1.5.x'

parents 59d5ed58 5bbd31e7
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -28,6 +28,7 @@ import java.util.List; ...@@ -28,6 +28,7 @@ import java.util.List;
import javax.validation.Valid; import javax.validation.Valid;
import org.junit.After; import org.junit.After;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
...@@ -64,7 +65,7 @@ import static org.hamcrest.Matchers.not; ...@@ -64,7 +65,7 @@ import static org.hamcrest.Matchers.not;
* *
* @author Brian Clozel * @author Brian Clozel
*/ */
public class DefaultErrorWebExceptionHandlerIntegrationTest { public class DefaultErrorWebExceptionHandlerIntegrationTests {
private ConfigurableApplicationContext context; private ConfigurableApplicationContext context;
...@@ -190,6 +191,7 @@ public class DefaultErrorWebExceptionHandlerIntegrationTest { ...@@ -190,6 +191,7 @@ public class DefaultErrorWebExceptionHandlerIntegrationTest {
} }
@Test @Test
@Ignore
public void responseCommitted() throws Exception { public void responseCommitted() throws Exception {
load(); load();
this.webTestClient.get().uri("/commit").exchange().expectStatus() this.webTestClient.get().uri("/commit").exchange().expectStatus()
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
package org.springframework.boot.test.autoconfigure; package org.springframework.boot.test.autoconfigure;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.test.context.TestConfiguration; import org.springframework.boot.test.context.TestConfiguration;
/** /**
...@@ -25,6 +26,7 @@ import org.springframework.boot.test.context.TestConfiguration; ...@@ -25,6 +26,7 @@ import org.springframework.boot.test.context.TestConfiguration;
* @author Phillip Webb * @author Phillip Webb
*/ */
@TestConfiguration @TestConfiguration
@EntityScan("some.other.package")
public class ExampleTestConfig { public class ExampleTestConfig {
} }
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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; ...@@ -42,7 +42,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@OverrideAutoConfiguration(enabled = false) @OverrideAutoConfiguration(enabled = false)
@BootstrapWith(SpringBootTestContextBootstrapper.class) @BootstrapWith(SpringBootTestContextBootstrapper.class)
@ImportAutoConfiguration(ExampleTestConfig.class) @ImportAutoConfiguration(ExampleTestConfig.class)
public class OverrideAutoConfigurationEnabledFalseIntegrationTest { public class OverrideAutoConfigurationEnabledFalseIntegrationTests {
@Rule @Rule
public ExpectedException thrown = ExpectedException.none(); public ExpectedException thrown = ExpectedException.none();
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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; ...@@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@OverrideAutoConfiguration(enabled = true) @OverrideAutoConfiguration(enabled = true)
@BootstrapWith(SpringBootTestContextBootstrapper.class) @BootstrapWith(SpringBootTestContextBootstrapper.class)
@ImportAutoConfiguration(ExampleTestConfig.class) @ImportAutoConfiguration(ExampleTestConfig.class)
public class OverrideAutoConfigurationEnabledTrueIntegrationTest { public class OverrideAutoConfigurationEnabledTrueIntegrationTests {
@Autowired @Autowired
private ApplicationContext context; private ApplicationContext context;
......
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