- @Test
- void serviceImplementationTerminationPointAsResourcePp() throws InterruptedException, ExecutionException {
- ServiceImplementationRequestInput input = ServiceDataUtils
- .buildServiceImplementationRequestInputTerminationPointResource(StringConstants.PP_TOKEN);
- ServicePathOutputBuilder mockOutputBuilder = new ServicePathOutputBuilder().setResult("success")
- .setSuccess(true);
- doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
- assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
- }
-
- @Test
- void serviceImplementationTerminationPointAsResourceNetwork() throws InterruptedException, ExecutionException {
- ServiceImplementationRequestInput input = ServiceDataUtils
- .buildServiceImplementationRequestInputTerminationPointResource(StringConstants.NETWORK_TOKEN);
- ServicePathOutputBuilder mockOutputBuilder = new ServicePathOutputBuilder().setResult("success")
- .setSuccess(true);
- doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
- assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
- }
-
- @Test
- void serviceImplementationTerminationPointAsResourceClient() throws InterruptedException, ExecutionException {
- ServiceImplementationRequestInput input = ServiceDataUtils
- .buildServiceImplementationRequestInputTerminationPointResource(StringConstants.CLIENT_TOKEN);
- ServicePathOutputBuilder mockOutputBuilder = new ServicePathOutputBuilder().setResult("success")
- .setSuccess(true);
- doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
- assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
- }
-