mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 15:25:50 +07:00
replace PlatformTestCase.isRunInEdt() with UsefulTestCase.runInDispatchThread(), there's no reason to keep both
This commit is contained in:
@@ -708,12 +708,8 @@ public abstract class PlatformTestCase extends UsefulTestCase implements DataPro
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean isRunInEdt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void runBareRunnable(ThrowableRunnable<Throwable> runnable) throws Throwable {
|
||||
if (isRunInEdt()) {
|
||||
if (runInDispatchThread()) {
|
||||
EdtTestUtil.runInEdtAndWait(runnable);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -88,7 +88,7 @@ abstract class VcsPlatformTest : PlatformTestCase() {
|
||||
// we don't need a module in Git tests
|
||||
}
|
||||
|
||||
override fun isRunInEdt(): Boolean {
|
||||
override fun runInDispatchThread(): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
@@ -206,9 +206,4 @@ public abstract class GithubTest extends GitPlatformTest {
|
||||
|
||||
protected void afterTest() throws Exception {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isRunInEdt() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user