Search in sources :

Example 1 with DisableDebuggingAsyncRequest

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

the class DisableDebuggingRequestFactory method fromScenarioContext.

public static DisableDebuggingAsyncRequest fromScenarioContext() {
    final DisableDebuggingAsyncRequest disableDebuggingAsyncRequest = new DisableDebuggingAsyncRequest();
    disableDebuggingAsyncRequest.setCorrelationUid(RequestFactoryHelper.getCorrelationUidFromScenarioContext());
    disableDebuggingAsyncRequest.setDeviceIdentification(RequestFactoryHelper.getDeviceIdentificationFromScenarioContext());
    return disableDebuggingAsyncRequest;
}
Also used : DisableDebuggingAsyncRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.DisableDebuggingAsyncRequest)

Example 2 with DisableDebuggingAsyncRequest

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

the class EnableAndDisableDebugging method theDisableDebugResponseShouldBe.

@Then("^the disable debug response should be \"([^\"]*)\"$")
public void theDisableDebugResponseShouldBe(final String result) throws Throwable {
    final DisableDebuggingAsyncRequest disableDebuggingAsyncRequest = DisableDebuggingRequestFactory.fromScenarioContext();
    final DisableDebuggingResponse disableDebuggingResponse = this.smartMeteringManagementResponseClientDisableDebugging.getResponse(disableDebuggingAsyncRequest);
    assertThat(disableDebuggingResponse).as("DisableDebugRequestResponse should not be null").isNotNull();
    assertThat(disableDebuggingResponse.getResult()).as("Expected result").isNotNull();
}
Also used : DisableDebuggingAsyncRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.DisableDebuggingAsyncRequest) DisableDebuggingResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.DisableDebuggingResponse) Then(io.cucumber.java.en.Then)

Aggregations

DisableDebuggingAsyncRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.DisableDebuggingAsyncRequest)2 Then (io.cucumber.java.en.Then)1 DisableDebuggingResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.management.DisableDebuggingResponse)1