APISonar


org.jetbrains.android.newProject.AndroidProjectTemplatesFactory.ANDROID

> org > jetbrains > android > newProject > AndroidProjectTemplatesFactory > ANDROID
org APIs jetbrains APIs android APIs newProject APIs AndroidProjectTemplatesFactory APIs ANDROID APIs

Example 1
public void testCreateLibrary() throws Exception {
    createProjectFromTemplate(AndroidProjectTemplatesFactory.ANDROID, AndroidProjectTemplatesFactory.LIBRARY_MODULE, new Consumer<ModuleWizardStep>() {
      @Override
      public void consume(ModuleWizardStep step) {
        if (step instanceof AndroidModuleWizardStep) {
          ProjectBuilder builder = myWizard.getProjectBuilder();
          assertTrue(builder instanceof AndroidModuleBuilder);
          String name = ((AndroidModuleBuilder)builder).getName();
          assertTrue(name, StringUtil.isNotEmpty(name));
        }
      }
    });
  }