Search in sources :

Example 1 with MinishiftServerEditor

use of org.jboss.tools.cdk.reddeer.server.ui.editor.MinishiftServerEditor in project jbosstools-openshift by jbosstools.

the class CDKServerAdapterAbstractTest method addParamsToCDKLaunchConfig.

/**
 * Adds string containing proper flags/parameters into server adapter starting arguments
 * @param paramsToAdd
 */
protected void addParamsToCDKLaunchConfig(Server server, String paramsToAdd) {
    server.open();
    (new MinishiftServerEditor(server.getLabel().getName())).openLaunchConfigurationFromLink();
    CDKLaunchConfigurationDialog launchConfig = new CDKLaunchConfigurationDialog();
    if (!launchConfig.getArguments().getText().contains(paramsToAdd)) {
        launchConfig.addArguments(paramsToAdd);
    } else {
        log.info(server.getLabel().getName() + " launch config already contains given arguments");
    }
    launchConfig.ok();
}
Also used : MinishiftServerEditor(org.jboss.tools.cdk.reddeer.server.ui.editor.MinishiftServerEditor) CDKLaunchConfigurationDialog(org.jboss.tools.cdk.reddeer.server.ui.editor.launch.configuration.CDKLaunchConfigurationDialog)

Aggregations

MinishiftServerEditor (org.jboss.tools.cdk.reddeer.server.ui.editor.MinishiftServerEditor)1 CDKLaunchConfigurationDialog (org.jboss.tools.cdk.reddeer.server.ui.editor.launch.configuration.CDKLaunchConfigurationDialog)1