Search in sources :

Example 1 with ComponentCategory

use of com.android.tools.idea.welcome.install.ComponentCategory in project android by JetBrains.

the class FirstRunWizardTest method assertPagesVisible.

private void assertPagesVisible(@Nullable InstallerData data, boolean isComponentsStepVisible, boolean hasAndroidSdkPath) {
    InstallerData.set(data);
    FirstRunWizardMode mode = data == null ? FirstRunWizardMode.NEW_INSTALL : FirstRunWizardMode.INSTALL_HANDOFF;
    assertVisible(new SdkComponentsStep(new ComponentCategory("test", "test"), KEY_TRUE, createKey(String.class), mode), data, isComponentsStepVisible);
    if (data != null) {
        assertEquals(String.valueOf(data.toString()), hasAndroidSdkPath, data.hasValidSdkLocation());
    }
}
Also used : FirstRunWizardMode(com.android.tools.idea.welcome.config.FirstRunWizardMode) ComponentCategory(com.android.tools.idea.welcome.install.ComponentCategory)

Aggregations

FirstRunWizardMode (com.android.tools.idea.welcome.config.FirstRunWizardMode)1 ComponentCategory (com.android.tools.idea.welcome.install.ComponentCategory)1