Search in sources :

Example 1 with ConfigureConnectionAmq

use of io.syndesis.qe.pages.connections.wizard.phases.configure.ConfigureConnectionAmq in project syndesis-qe by syndesisio.

the class SelectConnectionType method selectConnectionType.

public void selectConnectionType(String title) {
    switch(title) {
        case "AMQ":
            wizard.replaceStep(new ConfigureConnectionAmq(), 1);
            break;
        default:
            wizard.replaceStep(new ConfigureConnection(), 1);
    }
    log.info("Selected " + title + " connection type.");
    connectionTypes.invokeActionOnItem(title, ListAction.CLICK);
}
Also used : ConfigureConnectionAmq(io.syndesis.qe.pages.connections.wizard.phases.configure.ConfigureConnectionAmq) ConfigureConnection(io.syndesis.qe.pages.connections.wizard.phases.configure.ConfigureConnection)

Example 2 with ConfigureConnectionAmq

use of io.syndesis.qe.pages.connections.wizard.phases.configure.ConfigureConnectionAmq in project syndesis-qe by syndesisio.

the class SelectConnectionTypeSteps method selectConnectionType.

@When("^Camilla selects \"([^\"]*)\" connection type$")
public void selectConnectionType(String connectionName) {
    selectConnectionTypePage.selectConnectionType(connectionName);
    ConfigureConnection connectionWizardStep = null;
    switch(connectionName) {
        case "AMQ":
            connectionWizardStep = new ConfigureConnectionAmq();
            break;
        default:
            connectionWizardStep = new ConfigureConnection();
    }
    wizard.replaceStep(connectionWizardStep, 1);
}
Also used : ConfigureConnectionAmq(io.syndesis.qe.pages.connections.wizard.phases.configure.ConfigureConnectionAmq) ConfigureConnection(io.syndesis.qe.pages.connections.wizard.phases.configure.ConfigureConnection) When(cucumber.api.java.en.When)

Aggregations

ConfigureConnection (io.syndesis.qe.pages.connections.wizard.phases.configure.ConfigureConnection)2 ConfigureConnectionAmq (io.syndesis.qe.pages.connections.wizard.phases.configure.ConfigureConnectionAmq)2 When (cucumber.api.java.en.When)1