Skip to content

Commit 5b7fa98

Browse files
authored
Merge pull request #44324 from geoand/#44129-again
Take config annotation when trying to match test resources
2 parents f093b41 + 5aa171b commit 5b7fa98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,12 @@ public static Set<TestResourceManager.TestResourceComparisonInfo> testResourceCo
326326
}
327327
Set<TestResourceManager.TestResourceComparisonInfo> result = new HashSet<>(uniqueEntries.size());
328328
for (TestResourceClassEntry entry : uniqueEntries) {
329+
Map<String, String> args = new HashMap<>(entry.args);
330+
if (entry.configAnnotation != null) {
331+
args.put("configAnnotation", entry.configAnnotation.annotationType().getName());
332+
}
329333
result.add(new TestResourceComparisonInfo(entry.testResourceLifecycleManagerClass().getName(), entry.getScope(),
330-
entry.args));
334+
args));
331335
}
332336
return result;
333337
}

0 commit comments

Comments
 (0)