Skip to content

Commit

Permalink
Merge pull request #44324 from geoand/#44129-again
Browse files Browse the repository at this point in the history
Take config annotation when trying to match test resources
  • Loading branch information
geoand authored Nov 6, 2024
2 parents f093b41 + 5aa171b commit 5b7fa98
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 5b7fa98

Please sign in to comment.