From 94b366bc16edd7ad0f0534b1ede24a0df6686c2f Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 1 Oct 2018 10:22:43 -0700 Subject: [PATCH] Make assertable context interfaces configurable Update `Assertable*ApplicationContext` interfaces so that they also extend the appropriate `Configurable*ApplicationContext` interface. Closes gh-14650 --- .../test/context/assertj/AssertableApplicationContext.java | 5 +++-- .../assertj/AssertableReactiveWebApplicationContext.java | 4 ++-- .../context/assertj/AssertableWebApplicationContext.java | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableApplicationContext.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableApplicationContext.java index a5543711751..253f4bc7e9c 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableApplicationContext.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableApplicationContext.java @@ -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. @@ -35,7 +35,8 @@ import org.springframework.context.ConfigurableApplicationContext; * @see ApplicationContext */ public interface AssertableApplicationContext - extends ApplicationContextAssertProvider { + extends ApplicationContextAssertProvider, + ConfigurableApplicationContext { /** * Factory method to create a new {@link AssertableApplicationContext} instance. diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableReactiveWebApplicationContext.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableReactiveWebApplicationContext.java index 868e6194eea..b767a35610a 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableReactiveWebApplicationContext.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableReactiveWebApplicationContext.java @@ -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. @@ -35,7 +35,7 @@ import org.springframework.boot.web.reactive.context.ReactiveWebApplicationConte */ public interface AssertableReactiveWebApplicationContext extends ApplicationContextAssertProvider, - ReactiveWebApplicationContext { + ConfigurableReactiveWebApplicationContext { /** * Factory method to create a new {@link AssertableReactiveWebApplicationContext} diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableWebApplicationContext.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableWebApplicationContext.java index a7ff4e5b446..e00969042d3 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableWebApplicationContext.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/AssertableWebApplicationContext.java @@ -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. @@ -36,7 +36,7 @@ import org.springframework.web.context.WebApplicationContext; */ public interface AssertableWebApplicationContext extends ApplicationContextAssertProvider, - WebApplicationContext { + ConfigurableWebApplicationContext { /** * Factory method to create a new {@link AssertableWebApplicationContext} instance.