Search in sources :

Example 1 with AssociationLnObjectsResponse

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AssociationLnObjectsResponse in project open-smart-grid-platform by OSGP.

the class BundledGetAssociationLnObjectListSteps method theBundleResponseShouldContainAGetAssociationLnObjectsResponse.

@Then("^the bundle response should contain a get association ln objects response with values$")
public void theBundleResponseShouldContainAGetAssociationLnObjectsResponse(final Map<String, String> values) throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response instanceof AssociationLnObjectsResponse).as("Not a valid response").isTrue();
    assertThat(response.getResult().name()).as("Result is not as expected.").isEqualTo(values.get(PlatformSmartmeteringKeys.RESULT));
    assertThat(StringUtils.isNotBlank(response.getResultString())).as("Result contains no data.").isTrue();
}
Also used : AssociationLnObjectsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AssociationLnObjectsResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) AssociationLnObjectsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AssociationLnObjectsResponse) Then(io.cucumber.java.en.Then)

Example 2 with AssociationLnObjectsResponse

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AssociationLnObjectsResponse in project open-smart-grid-platform by OSGP.

the class BundledGetAssociationLnObjectListSteps method theBundleResponseShouldContainAGetAssociationLnObjectsResponse.

@Then("^the bundle response should contain a get association ln objects response$")
public void theBundleResponseShouldContainAGetAssociationLnObjectsResponse() throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response instanceof AssociationLnObjectsResponse).as("Not a valid response").isTrue();
}
Also used : AssociationLnObjectsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AssociationLnObjectsResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) AssociationLnObjectsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AssociationLnObjectsResponse) Then(io.cucumber.java.en.Then)

Aggregations

Then (io.cucumber.java.en.Then)2 AssociationLnObjectsResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.AssociationLnObjectsResponse)2 Response (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response)2