use of io.syndesis.qe.endpoint.IntegrationOverviewEndpoint in project syndesis-qe by syndesisio.
the class CommonValidationSteps method verifyIntegrationState.
@Then("verify integration {string} has current state {string}")
public void verifyIntegrationState(String integrationName, String integrationState) {
String integrationId = integrationsEndpoint.getIntegrationId(integrationName).get();
integrationOverviewEndpoint = new IntegrationOverviewEndpoint();
final IntegrationOverview integrationOverview = integrationOverviewEndpoint.getOverview(integrationId);
log.debug("Actual state: {} and desired state: {}", integrationOverview.getCurrentState().name(), integrationState);
Assertions.assertThat(integrationOverview.getCurrentState().name()).isEqualTo(integrationState);
}
Aggregations