From 5aa171b2f1aff42deca5b21c094e3b281b18cb04 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 5 Nov 2024 15:36:06 +0200 Subject: [PATCH] Take config annotation when trying to match test resources Relates to: #44129 --- .../java/io/quarkus/test/common/TestResourceManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java b/test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java index ca18f00b0a814..8521d7407200a 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java @@ -326,8 +326,12 @@ public static Set testResourceCo } Set result = new HashSet<>(uniqueEntries.size()); for (TestResourceClassEntry entry : uniqueEntries) { + Map 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; }