use of io.syndesis.common.model.connection.ConnectorSettings in project syndesis by syndesisio.
the class ConnectorGeneratorTest method shouldCreateBaseConnectors.
@Test
public void shouldCreateBaseConnectors() {
final ConnectorSettings settings = new ConnectorSettings.Builder().putConfiguredProperty("property2", "value2").build();
final Connector connector = generator.baseConnectorFrom(template, settings);
//
assertThat(connector).isEqualToIgnoringGivenFields(//
new Connector.Builder().name(//
"test-name").description(//
"test-description").connectorGroup(//
template.getConnectorGroup()).connectorGroupId(//
"template-group").properties(//
template.getConnectorProperties()).putConfiguredProperty("property2", //
"value2").build(), "id", "icon");
assertThat(connector.getIcon()).isEqualTo("data:image/svg+xml,dummy");
}
Aggregations