replace PlatformTestCase.isRunInEdt() with UsefulTestCase.runInDispatchThread(), there's no reason to keep both

This commit is contained in:
Dmitry Batrak
2016-07-01 13:09:18 +03:00
parent 1504349453
commit 6f7d1a6f17
3 changed files with 2 additions and 11 deletions
@@ -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;
}
}