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:
committed by
Sam Brannen
parent
8574f977a2
commit
2e476ca14f
@@ -0,0 +1 @@
|
||||
default.value = a value from default properties file
|
||||
@@ -0,0 +1 @@
|
||||
first = 1111
|
||||
@@ -0,0 +1 @@
|
||||
key = local value
|
||||
@@ -0,0 +1 @@
|
||||
meta = a value from file in the meta-annotation
|
||||
@@ -0,0 +1 @@
|
||||
second = 2222
|
||||
Reference in New Issue
Block a user