|
|
|
|
@ -173,13 +173,13 @@ public @interface TestPropertySource {
@@ -173,13 +173,13 @@ public @interface TestPropertySource {
|
|
|
|
|
* <strong>and</strong> {@code "extended.properties"} files as test property |
|
|
|
|
* source locations. |
|
|
|
|
* <pre class="code"> |
|
|
|
|
* @TestPropertySource("base.properties") |
|
|
|
|
* @TestPropertySource("base.properties") |
|
|
|
|
* @ContextConfiguration |
|
|
|
|
* public class BaseTest { |
|
|
|
|
* // ...
|
|
|
|
|
* } |
|
|
|
|
* |
|
|
|
|
* @TestPropertySource("extended.properties") |
|
|
|
|
* @TestPropertySource("extended.properties") |
|
|
|
|
* @ContextConfiguration |
|
|
|
|
* public class ExtendedTest extends BaseTest { |
|
|
|
|
* // ...
|
|
|
|
|
@ -250,12 +250,12 @@ public @interface TestPropertySource {
@@ -250,12 +250,12 @@ public @interface TestPropertySource {
|
|
|
|
|
* {@code ExtendedTest} will be loaded using the inlined {@code key1} |
|
|
|
|
* <strong>and</strong> {@code key2} properties. |
|
|
|
|
* <pre class="code"> |
|
|
|
|
* @TestPropertySource(properties = "key1 = value1") |
|
|
|
|
* @TestPropertySource(properties = "key1 = value1") |
|
|
|
|
* @ContextConfiguration |
|
|
|
|
* public class BaseTest { |
|
|
|
|
* // ...
|
|
|
|
|
* } |
|
|
|
|
* @TestPropertySource(properties = "key2 = value2") |
|
|
|
|
* @TestPropertySource(properties = "key2 = value2") |
|
|
|
|
* @ContextConfiguration |
|
|
|
|
* public class ExtendedTest extends BaseTest { |
|
|
|
|
* // ...
|
|
|
|
|
|