use of io.syndesis.common.model.connection.ConnectorTemplate in project syndesis by syndesisio.
the class CustomConnectorITCase method createConnectorTemplates.
@Before
public void createConnectorTemplates() {
dataManager.create(template);
final ConnectorTemplate secondTemplate = createConnectorTemplate(SECOND_TEMPLATE_ID, "connector template");
dataManager.create(secondTemplate);
dataManager.create(connector1);
dataManager.create(connector2);
dataManager.create(connector3);
dataManager.create(nonCustomConnector);
}
use of io.syndesis.common.model.connection.ConnectorTemplate in project syndesis by syndesisio.
the class AbstractSwaggerConnectorTest method fetchSwaggerConnectorTemplateFromDeployment.
private static ConnectorTemplate fetchSwaggerConnectorTemplateFromDeployment() {
final Configuration configuration = //
Configuration.builder().jsonProvider(//
new JacksonJsonProvider(Json.copyObjectMapperConfiguration())).mappingProvider(//
new JacksonMappingProvider(Json.copyObjectMapperConfiguration())).build();
final List<ConnectorTemplate> templates = JsonPath.using(configuration).parse(AbstractSwaggerConnectorTest.class.getResourceAsStream("/io/syndesis/server/dao/deployment.json")).read("$..[?(@['id'] == 'swagger-connector-template')]", new TypeRef<List<ConnectorTemplate>>() {
});
return templates.get(0);
}
Aggregations