handle OLM when spanloss > 28dB
[transportpce.git] / renderer / src / test / java / org / opendaylight / transportpce / renderer / stub / OlmServiceStub.java
index 94d35a04e1b3e5a64ea9028428ef2989b962f735..bc78541b5dd9eff00ec763747db10962af08925b 100644 (file)
@@ -9,6 +9,8 @@ package org.opendaylight.transportpce.renderer.stub;
 
 import com.google.common.util.concurrent.ListenableFuture;
 import java.util.ArrayList;
+
+import org.opendaylight.transportpce.common.ResponseCodes;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev170418.CalculateSpanlossBaseInput;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev170418.CalculateSpanlossBaseOutput;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev170418.CalculateSpanlossCurrentInput;
@@ -61,6 +63,7 @@ public class OlmServiceStub implements TransportpceOlmService {
 
     @Override public ListenableFuture<RpcResult<ServicePowerSetupOutput>> servicePowerSetup(
             ServicePowerSetupInput input) {
-        return RpcResultBuilder.success(new ServicePowerSetupOutputBuilder().build()).buildFuture();
+        return RpcResultBuilder.success(new ServicePowerSetupOutputBuilder()
+            .setResult(ResponseCodes.SUCCESS_RESULT).build()).buildFuture();
     }
 }