use of com.redhat.service.smartevents.manager.models.ConnectorEntity in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class Fixtures method createConnector.
private static ConnectorEntity createConnector(Processor p, ManagedResourceStatus status, ConnectorType type, String connectorTypeId) {
ConnectorEntity connector = new ConnectorEntity();
connector.setType(type);
connector.setName(TestConstants.DEFAULT_CONNECTOR_NAME);
connector.setProcessor(p);
connector.setStatus(status);
connector.setSubmittedAt(ZonedDateTime.now());
connector.setPublishedAt(ZonedDateTime.now());
connector.setDefinition(new TextNode("definition"));
connector.setTopicName(TestConstants.DEFAULT_KAFKA_TOPIC);
connector.setConnectorTypeId(connectorTypeId);
connector.setConnectorExternalId("connectorExternalId");
return connector;
}
Aggregations