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();
}
Aggregations