mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[junit] Add comment to clarify dumbaware implementation
(cherry picked from commit cbf5ad87123890456a429754ca0a15d1adbb2d9c) IJ-CR-179755 GitOrigin-RevId: e0f9ca6bc758de30e88eb560108c6be469c69154
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5a12e7d618
commit
dbcf34422a
@@ -13,6 +13,8 @@ public class JUnit3Framework extends JUnitTestFramework {
|
||||
|
||||
@Override
|
||||
public boolean isDumbAware() {
|
||||
// Only Java is available in dumb mode, other language implementation might not support it.
|
||||
// For example, Kotlin, because it relies on light classes which require resolve.
|
||||
return this.getClass().isAssignableFrom(JUnit3Framework.class);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ public class JUnit4Framework extends JUnitTestFramework {
|
||||
|
||||
@Override
|
||||
public boolean isDumbAware() {
|
||||
// Only Java is available in dumb mode, other language implementation might not support it.
|
||||
// For example, Kotlin, because it relies on light classes which require resolve.
|
||||
return this.getClass().isAssignableFrom(JUnit4Framework.class);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ public class JUnit5Framework extends JUnitTestFramework {
|
||||
|
||||
@Override
|
||||
public boolean isDumbAware() {
|
||||
// Only Java is available in dumb mode, other language implementation might not support it.
|
||||
// For example, Kotlin, because it relies on light classes which require resolve.
|
||||
return this.getClass().isAssignableFrom(JUnit5Framework.class);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ import static com.siyeh.ig.junit.JUnitCommonClassNames.ORG_JUNIT_JUPITER_API_MET
|
||||
public class JUnit6Framework extends JUnit5Framework {
|
||||
@Override
|
||||
public boolean isDumbAware() {
|
||||
// Only Java is available in dumb mode, other language implementation might not support it.
|
||||
// For example, Kotlin, because it relies on light classes which require resolve.
|
||||
return this.getClass().isAssignableFrom(JUnit6Framework.class);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user