Search in sources :

Example 1 with FindEventsResponse

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

the class BundledFindEventsSteps method theBundleResponseShouldContainAFindEventsResponse.

@Then("^the bundle response should contain a find events response with (\\d++) events$")
public void theBundleResponseShouldContainAFindEventsResponse(final int nrOfEvents) throws Throwable {
    final Response response = this.getNextBundleResponse();
    assertThat(response).isInstanceOf(FindEventsResponse.class);
    final FindEventsResponse findEventsResponse = (FindEventsResponse) response;
    assertThat(findEventsResponse.getEvents()).hasSize(nrOfEvents);
}
Also used : FindEventsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.FindEventsResponse) Response(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.Response) FindEventsResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.bundle.FindEventsResponse) Then(io.cucumber.java.en.Then)

Aggregations

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