Support @TestPropertySource as a repeatable annotation

Prior to this commit, @TestPropertySource could not be declared as a
repeatable annotation. In addition, a local declaration of
@TestPropertySource would silently override a meta-present
@TestPropertySource.

This commit addresses this issue by introducing @TestPropertySources as
a container for @TestPropertySource. This commit also updates the
search and algorithms within TestPropertySourceUtils.

Closes gh-23320
This commit is contained in:
Anatoliy Korovin
2019-07-20 12:02:40 +10:00
committed by Sam Brannen
parent 8574f977a2
commit 2e476ca14f
24 changed files with 992 additions and 30 deletions

View File

@@ -0,0 +1 @@
default.value = a value from default properties file

View File

@@ -0,0 +1 @@
key = local value

View File

@@ -0,0 +1 @@
meta = a value from file in the meta-annotation

View File

@@ -0,0 +1 @@
second = 2222