Skip to content

Commit e75aa36

Browse files
committed
test: use JDT constant for JUnit 6 kind
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: f7a1a4d1-b63f-438b-a255-54976b0f5a0b
1 parent 9f223f0 commit e75aa36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

java-extension/com.microsoft.java.test.plugin.test/src/com/microsoft/java/test/plugin/searcher/JUnit6TestSearcherTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.eclipse.jdt.core.IJavaProject;
2424
import org.eclipse.jdt.core.IType;
2525
import org.eclipse.jdt.core.JavaCore;
26+
import org.eclipse.jdt.internal.junit.launcher.TestKindRegistry;
2627
import org.junit.Test;
2728

2829
import com.microsoft.java.test.plugin.AbstractProjectsManagerBasedTest;
@@ -47,6 +48,6 @@ public void testFindNonStaticNestedTestClass() throws Exception {
4748
nestedType, new NullProgressMonitor());
4849
assertTrue(discoveredTypes.contains(nestedType));
4950
assertEquals(TestKind.JUnit6, searcher.getTestKind());
50-
assertEquals("org.eclipse.jdt.junit.loader.junit6", searcher.getJdtTestKind());
51+
assertEquals(TestKindRegistry.JUNIT6_TEST_KIND_ID, searcher.getJdtTestKind());
5152
}
5253
}

0 commit comments

Comments
 (0)