From 50dc8c2358b531bb36f01932480c677c172eb1cc Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 15 Aug 2018 17:17:24 +0200 Subject: [PATCH] Update JavaDoc for @BootstrapWith regarding local override Issue: SPR-17006 --- .../org/springframework/test/context/BootstrapWith.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java b/spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java index 7cf742f633..d56ce8f892 100644 --- a/spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java +++ b/spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-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,7 +28,10 @@ import java.lang.annotation.Target; * how to bootstrap the Spring TestContext Framework. * *

This annotation may also be used as a meta-annotation to create - * custom composed annotations. + * custom composed annotations. As of Spring Framework 5.1, a locally + * declared {@code @BootstrapWith} annotation (i.e., one that is directly + * present on the current test class) will override any meta-present + * declarations of {@code @BootstrapWith}. * * @author Sam Brannen * @since 4.1