Search in sources :

Example 1 with ConfigureAndroidModuleStepDynamic

use of com.android.tools.idea.npw.deprecated.ConfigureAndroidModuleStepDynamic in project android by JetBrains.

the class ConfigureAndroidModuleStepDynamicTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    ApplicationManager.getApplication().runWriteAction(() -> {
        final ModuleManager manager = ModuleManager.getInstance(getProject());
        File moduleRoot = new File(getProject().getBasePath(), "app");
        manager.newModule(moduleRoot.getPath(), ModuleTypeId.JAVA_MODULE);
        moduleRoot = new File(getProject().getBasePath(), "Lib");
        manager.newModule(moduleRoot.getPath(), ModuleTypeId.JAVA_MODULE);
        moduleRoot = new File(getProject().getBasePath(), "lib2");
        manager.newModule(moduleRoot.getPath(), ModuleTypeId.JAVA_MODULE);
    });
    ScopedStateStore wizardState = new ScopedStateStore(ScopedStateStore.Scope.WIZARD, null, null);
    ScopedStateStore pathState = new ScopedStateStore(ScopedStateStore.Scope.PATH, wizardState, null);
    myStep = new ConfigureAndroidModuleStepDynamic(getTestRootDisposable(), FormFactor.MOBILE);
    myStep.myState = new ScopedStateStore(ScopedStateStore.Scope.STEP, pathState, myStep);
}
Also used : ScopedStateStore(com.android.tools.idea.wizard.dynamic.ScopedStateStore) ConfigureAndroidModuleStepDynamic(com.android.tools.idea.npw.deprecated.ConfigureAndroidModuleStepDynamic) ModuleManager(com.intellij.openapi.module.ModuleManager) File(java.io.File)

Aggregations

ConfigureAndroidModuleStepDynamic (com.android.tools.idea.npw.deprecated.ConfigureAndroidModuleStepDynamic)1 ScopedStateStore (com.android.tools.idea.wizard.dynamic.ScopedStateStore)1 ModuleManager (com.intellij.openapi.module.ModuleManager)1 File (java.io.File)1