Skip to content

Commit 50dc8c2

Browse files
committed
Update JavaDoc for @BootstrapWith regarding local override
Issue: SPR-17006
1 parent d20d95b commit 50dc8c2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,7 +28,10 @@
2828
* how to bootstrap the <em>Spring TestContext Framework</em>.
2929
*
3030
* <p>This annotation may also be used as a <em>meta-annotation</em> to create
31-
* custom <em>composed annotations</em>.
31+
* custom <em>composed annotations</em>. As of Spring Framework 5.1, a locally
32+
* declared {@code @BootstrapWith} annotation (i.e., one that is <em>directly
33+
* present</em> on the current test class) will override any meta-present
34+
* declarations of {@code @BootstrapWith}.
3235
*
3336
* @author Sam Brannen
3437
* @since 4.1

0 commit comments

Comments
 (0)