mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[TestFramework] refactor: extract waiting for configuration to a common protected method
GitOrigin-RevId: 2b4fd813c070d028682ab47d6e3d61181dce4ee1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ab6b24bf30
commit
e22fc5b2ae
@@ -123,11 +123,7 @@ public abstract class ProjectWizardTestCase<T extends AbstractProjectWizard> ext
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
assertNotNull(myCreatedProject);
|
||||
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
IndexingTestUtil.waitUntilIndexesAreReady(myCreatedProject);
|
||||
TestObservation.waitForConfiguration(TimeUnit.MINUTES.toMillis(10), myCreatedProject);
|
||||
|
||||
waitForConfiguration(myCreatedProject);
|
||||
return myCreatedProject;
|
||||
}
|
||||
|
||||
@@ -137,12 +133,14 @@ public abstract class ProjectWizardTestCase<T extends AbstractProjectWizard> ext
|
||||
|
||||
private Module createModuleFromWizard(@NotNull Project project) {
|
||||
Module createdModule = new NewModuleAction().createModuleFromWizard(project, null, myWizard);
|
||||
waitForConfiguration(project);
|
||||
return createdModule;
|
||||
}
|
||||
|
||||
protected void waitForConfiguration(@NotNull Project project) {
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
IndexingTestUtil.waitUntilIndexesAreReady(project);
|
||||
TestObservation.waitForConfiguration(TimeUnit.MINUTES.toMillis(10), project);
|
||||
|
||||
return createdModule;
|
||||
}
|
||||
|
||||
private static void setSelectedTemplate(@NotNull Step step, @NotNull String group, @Nullable String name) {
|
||||
|
||||
Reference in New Issue
Block a user