From 9c0ce12b1896be53a3fb46f15e425a83c3aa7bd0 Mon Sep 17 00:00:00 2001 From: wenytang-ms Date: Thu, 4 Dec 2025 15:27:53 +0800 Subject: [PATCH] fix: sync junit 6 status to ui --- .../java/com/microsoft/java/test/plugin/util/TestItemUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/TestItemUtils.java b/java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/TestItemUtils.java index 0d054123..6a43b3cd 100644 --- a/java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/TestItemUtils.java +++ b/java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/TestItemUtils.java @@ -47,7 +47,7 @@ public static String parseFullName(IJavaElement element, TestLevel level, TestKi return type.getFullyQualifiedName(); case METHOD: final IMethod method = (IMethod) element; - if (kind == TestKind.JUnit5 || kind == TestKind.TestNG) { + if (kind == TestKind.JUnit5 || kind == TestKind.JUnit6 || kind == TestKind.TestNG) { final String className = method.getDeclaringType().getFullyQualifiedName(); // Generics don't come through in the test results, so we need to strip // them out now.