use of com.redhat.service.bridge.manager.models.ConnectorEntity in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ConnectorsServiceTest method testConnectorEntity.
private ConnectorEntity testConnectorEntity() {
ConnectorEntity connectorEntity = new ConnectorEntity();
connectorEntity.setId(TEST_CONNECTOR_ID);
connectorEntity.setConnectorExternalId(TEST_CONNECTOR_EXTERNAL_ID);
connectorEntity.setProcessor(testProcessor());
return connectorEntity;
}
use of com.redhat.service.bridge.manager.models.ConnectorEntity in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class Fixtures method createConnector.
public static ConnectorEntity createConnector(Processor p, String connectorName, ManagedResourceStatus status, String topicName) {
ConnectorEntity c = new ConnectorEntity();
c.setName(connectorName);
c.setProcessor(p);
c.setStatus(status);
c.setSubmittedAt(ZonedDateTime.now());
c.setPublishedAt(ZonedDateTime.now());
c.setDefinition(new TextNode("definition"));
c.setTopicName(topicName);
c.setConnectorExternalId("connectorExternalId");
return c;
}
use of com.redhat.service.bridge.manager.models.ConnectorEntity in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ConnectorsApiClientTest method testConnectorEntity.
private ConnectorEntity testConnectorEntity() {
ConnectorEntity connectorEntity = new ConnectorEntity();
connectorEntity.setId(TEST_CONNECTOR_ID);
connectorEntity.setName(TEST_CONNECTOR_NAME);
connectorEntity.setConnectorType(TEST_CONNECTOR_TYPE);
connectorEntity.setConnectorExternalId(TEST_CONNECTOR_EXTERNAL_ID);
connectorEntity.setProcessor(testProcessor());
return connectorEntity;
}
use of com.redhat.service.bridge.manager.models.ConnectorEntity in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ConnectorsDAOTest method findByProcessorIdName.
@Test
public void findByProcessorIdName() {
Bridge b = createBridge();
Processor p = createProcessor(b, "foo");
ConnectorEntity c = createPersistConnector(p, "connector", ManagedResourceStatus.READY);
assertThat(connectorsDAO.findByProcessorIdAndName(p.getId(), c.getName())).isEqualTo(c);
}
use of com.redhat.service.bridge.manager.models.ConnectorEntity in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ConnectorsDAOTest method createPersistConnector.
private ConnectorEntity createPersistConnector(Processor p, String connectorName, ManagedResourceStatus status) {
ConnectorEntity c = Fixtures.createConnector(p, connectorName, status, "topicName");
connectorsDAO.persist(c);
return c;
}
Aggregations