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);
}
Aggregations