Search in sources :

Example 1 with OpenShifIOPreferencePage

use of org.jboss.tools.openshift.reddeer.preference.page.OpenShifIOPreferencePage in project jbosstools-openshift by jbosstools.

the class GetOpenShiftIOTokenTest method removeAccountFromOpenShiftIOPreferencePage.

private static void removeAccountFromOpenShiftIOPreferencePage() {
    WorkbenchPreferenceDialog preferences = new WorkbenchPreferenceDialog();
    preferences.open();
    OpenShifIOPreferencePage page = new OpenShifIOPreferencePage(preferences);
    preferences.select(page);
    if (page.existsOpenShiftIOAccount()) {
        page.remove();
    }
    preferences.ok();
}
Also used : WorkbenchPreferenceDialog(org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog) OpenShifIOPreferencePage(org.jboss.tools.openshift.reddeer.preference.page.OpenShifIOPreferencePage)

Example 2 with OpenShifIOPreferencePage

use of org.jboss.tools.openshift.reddeer.preference.page.OpenShifIOPreferencePage in project jbosstools-openshift by jbosstools.

the class GetOpenShiftIOTokenTest method checkAccountInProperties.

private void checkAccountInProperties() {
    WorkbenchPreferenceDialog preferences = new WorkbenchPreferenceDialog();
    preferences.open();
    OpenShifIOPreferencePage page = new OpenShifIOPreferencePage(preferences);
    preferences.select(page);
    assertTrue("Account is not configured!", page.existsOpenShiftIOAccount());
    preferences.ok();
}
Also used : WorkbenchPreferenceDialog(org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog) OpenShifIOPreferencePage(org.jboss.tools.openshift.reddeer.preference.page.OpenShifIOPreferencePage)

Aggregations

WorkbenchPreferenceDialog (org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog)2 OpenShifIOPreferencePage (org.jboss.tools.openshift.reddeer.preference.page.OpenShifIOPreferencePage)2