Search in sources :

Example 21 with ConnectorAction

use of io.syndesis.common.model.action.ConnectorAction in project syndesis by syndesisio.

the class ConnectorTestSupport method newEndpointStep.

protected final Step newEndpointStep(String connectorId, String actionId, Consumer<Connection.Builder> connectionConsumer, Consumer<Step.Builder> stepConsumer) {
    Connector connector = resourceManager.mandatoryLoadConnector(connectorId);
    ConnectorAction action = resourceManager.mandatoryLookupAction(connector, actionId);
    Connection.Builder connectionBuilder = new Connection.Builder().connector(connector);
    connectionConsumer.accept(connectionBuilder);
    Step.Builder stepBuilder = new Step.Builder().stepKind(StepKind.endpoint).action(action).connection(connectionBuilder.build());
    stepConsumer.accept(stepBuilder);
    return stepBuilder.build();
}
Also used : Connector(io.syndesis.common.model.connection.Connector) Connection(io.syndesis.common.model.connection.Connection) ConnectorAction(io.syndesis.common.model.action.ConnectorAction) Step(io.syndesis.common.model.integration.Step)

Aggregations

ConnectorAction (io.syndesis.common.model.action.ConnectorAction)21 Connector (io.syndesis.common.model.connection.Connector)16 ConnectorDescriptor (io.syndesis.common.model.action.ConnectorDescriptor)11 Step (io.syndesis.common.model.integration.Step)8 ConfigurationProperty (io.syndesis.common.model.connection.ConfigurationProperty)5 Connection (io.syndesis.common.model.connection.Connection)5 ArrayList (java.util.ArrayList)5 Map (java.util.Map)5 DataShape (io.syndesis.common.model.DataShape)4 HashMap (java.util.HashMap)4 IOException (java.io.IOException)3 URISyntaxException (java.net.URISyntaxException)3 MojoFailureException (org.apache.maven.plugin.MojoFailureException)3 Test (org.junit.Test)3 ConnectorSettings (io.syndesis.common.model.connection.ConnectorSettings)2 Integration (io.syndesis.common.model.integration.Integration)2 MavenProperties (io.syndesis.common.util.MavenProperties)2 IntegrationProjectGenerator (io.syndesis.integration.api.IntegrationProjectGenerator)2 ComponentProxyComponent (io.syndesis.integration.component.proxy.ComponentProxyComponent)2 File (java.io.File)2