@Override protected void runBareRunnable(ThrowableRunnable<Throwable> r) throws Throwable { if (getName().equals("testRefreshingAsynchronously")) { // this method waits for another thread to finish, that leads // to deadlock in swing-thread. Therefore we have to run this test // outside of swing-thread r.run(); } else { super.runBareRunnable(r); } }
@Override public void setUp() throws Exception { if (getName().equals("testRefreshingAsynchronously")) { // this methods waits for another thread to finish, that leads // to deadlock in swing-thread. Therefore we have to run this test // outside of swing-thread EdtTestUtil.runInEdtAndWait(ExternalChangesAndRefreshingTest.super::setUp); } else { super.setUp(); } }
@Override protected void tearDown() throws Exception { if (getName().equals("testRefreshingAsynchronously")) { // this methods waits for another thread to finish, that leads // to deadlock in swing-thread. Therefore we have to run this test // outside of swing-thread EdtTestUtil.runInEdtAndWait(ExternalChangesAndRefreshingTest.super::tearDown); } else { //noinspection SuperTearDownInFinally super.tearDown(); } }