mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ProjectWizardTestCase: call tearDown even when some invokeLater throws exceptions
This commit is contained in:
@@ -214,10 +214,14 @@ public abstract class ProjectWizardTestCase<T extends AbstractProjectWizard> ext
|
||||
}
|
||||
});
|
||||
SelectTemplateSettings.getInstance().setLastTemplate(null, null);
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
Thread.sleep(2000); //wait for JBCardLayout release timers
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
super.tearDown();
|
||||
try {
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
Thread.sleep(2000); //wait for JBCardLayout release timers
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
}
|
||||
finally {
|
||||
super.tearDown();
|
||||
}
|
||||
}
|
||||
|
||||
protected Module importModuleFrom(ProjectImportProvider provider, String path) {
|
||||
|
||||
Reference in New Issue
Block a user