Update unit testing - Renderer
[transportpce.git] / renderer / src / test / java / org / opendaylight / transportpce / renderer / stub / OlmServiceStub.java
index 8822b9b76e57aee7753526d6b6f7f2c6e8db60a7..91a3ca0e841349d580ab6c62ded15e888a2ee44a 100644 (file)
@@ -24,6 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.olm.rev1
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.olm.rev170418.ServicePowerSetupOutputBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.olm.rev170418.ServicePowerTurndownInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.olm.rev170418.ServicePowerTurndownOutput;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.olm.rev170418.ServicePowerTurndownOutputBuilder;
 import org.opendaylight.yangtools.yang.common.RpcResult;
 import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 
@@ -43,7 +44,8 @@ public class OlmServiceStub implements OlmService {
 
     @Override public ListenableFuture<RpcResult<ServicePowerTurndownOutput>> servicePowerTurndown(
         ServicePowerTurndownInput input) {
-        return null;
+        return RpcResultBuilder.success((new ServicePowerTurndownOutputBuilder())
+                .setResult("Success").build()).buildFuture();
     }
 
     @Override public ListenableFuture<RpcResult<CalculateSpanlossBaseOutput>> calculateSpanlossBase(
@@ -51,13 +53,13 @@ public class OlmServiceStub implements OlmService {
         return null;
     }
 
-    @Override public ListenableFuture<RpcResult<ServicePowerResetOutput>>
-        servicePowerReset(ServicePowerResetInput input) {
+    @Override public ListenableFuture<RpcResult<ServicePowerResetOutput>> servicePowerReset(
+            ServicePowerResetInput input) {
         return null;
     }
 
-    @Override public ListenableFuture<RpcResult<ServicePowerSetupOutput>>
-        servicePowerSetup(ServicePowerSetupInput input) {
+    @Override public ListenableFuture<RpcResult<ServicePowerSetupOutput>> servicePowerSetup(
+            ServicePowerSetupInput input) {
         return RpcResultBuilder.success(new ServicePowerSetupOutputBuilder().build()).buildFuture();
     }
 }