Skip to content

Commit

Permalink
Take config annotation when trying to match test resources
Browse files Browse the repository at this point in the history
Relates to: #44129

(cherry picked from commit 5aa171b)
  • Loading branch information
geoand authored and gsmet committed Nov 5, 2024
1 parent 8faa456 commit 54ff252
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,12 @@ public static Set<TestResourceManager.TestResourceComparisonInfo> testResourceCo
}
Set<TestResourceManager.TestResourceComparisonInfo> result = new HashSet<>(uniqueEntries.size());
for (TestResourceClassEntry entry : uniqueEntries) {
Map<String, String> args = new HashMap<>(entry.args);
if (entry.configAnnotation != null) {
args.put("configAnnotation", entry.configAnnotation.annotationType().getName());
}
result.add(new TestResourceComparisonInfo(entry.testResourceLifecycleManagerClass().getName(), entry.getScope(),
entry.args));
args));
}
return result;
}
Expand Down

0 comments on commit 54ff252

Please sign in to comment.