use of com.intellij.execution.junit.JUnit5Framework in project intellij-community by JetBrains.
the class JUnit5AcceptanceTest method testFrameworkDetection.
@Test
void testFrameworkDetection() {
doTest(() -> {
PsiClass aClass = myFixture.addClass("class MyTest {@org.junit.jupiter.api.Test void method() {}}");
assertNotNull(aClass);
TestFramework framework = TestFrameworks.detectFramework(aClass);
assertTrue(framework instanceof JUnit5Framework, framework.getName());
});
}
Aggregations