Search in sources :

Example 1 with OpenShift3SSLCertificatePreferencePage

use of org.jboss.tools.cdk.reddeer.preferences.OpenShift3SSLCertificatePreferencePage in project jbosstools-openshift by jbosstools.

the class CDKServerAdapterAbstractTest method printCertificates.

/**
 * Prints out Openshift 3 accepted certificates
 */
protected static void printCertificates() {
    WorkbenchPreferenceDialog dialog = new WorkbenchPreferenceDialog();
    dialog.open();
    OpenShift3SSLCertificatePreferencePage preferencePage = new OpenShift3SSLCertificatePreferencePage(dialog);
    dialog.select(preferencePage);
    preferencePage.printCertificates();
    dialog.ok();
}
Also used : WorkbenchPreferenceDialog(org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog) OpenShift3SSLCertificatePreferencePage(org.jboss.tools.cdk.reddeer.preferences.OpenShift3SSLCertificatePreferencePage)

Example 2 with OpenShift3SSLCertificatePreferencePage

use of org.jboss.tools.cdk.reddeer.preferences.OpenShift3SSLCertificatePreferencePage in project jbosstools-openshift by jbosstools.

the class CDKServerAdapterAbstractTest method deleteCertificates.

/**
 * Deletes all Openshift 3 SSL certificates that were accepted from
 * Preferences -> JBossTools -> OpenShift 3 -> SSL Certificates
 */
public static void deleteCertificates() {
    WorkbenchPreferenceDialog dialog = new WorkbenchPreferenceDialog();
    dialog.open();
    OpenShift3SSLCertificatePreferencePage preferencePage = new OpenShift3SSLCertificatePreferencePage(dialog);
    dialog.select(preferencePage);
    preferencePage.deleteAll();
    preferencePage.apply();
    dialog.ok();
}
Also used : WorkbenchPreferenceDialog(org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog) OpenShift3SSLCertificatePreferencePage(org.jboss.tools.cdk.reddeer.preferences.OpenShift3SSLCertificatePreferencePage)

Aggregations

WorkbenchPreferenceDialog (org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog)2 OpenShift3SSLCertificatePreferencePage (org.jboss.tools.cdk.reddeer.preferences.OpenShift3SSLCertificatePreferencePage)2