ItmRpcTestImpl throw UnsupportedOperationException instead return null 02/68102/2
authorMichael Vorburger <vorburger@redhat.com>
Fri, 9 Feb 2018 11:40:33 +0000 (12:40 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Thu, 15 Feb 2018 18:28:31 +0000 (18:28 +0000)
Change-Id: I60138084a79bb2827cf363920506da5d44c29ad5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
commons/testutils/src/main/java/org/opendaylight/genius/testutils/itm/ItmRpcTestImpl.java

index befa4929756f4a77437341412ba1d548ea9290a0..7e21e14e47f84529e79efe0065e1355c6d82ca53 100644 (file)
@@ -116,8 +116,7 @@ public final class ItmRpcTestImpl implements ItmRpcService {
     @Override
     public synchronized Future<RpcResult<IsTunnelInternalOrExternalOutput>> isTunnelInternalOrExternal(
             IsTunnelInternalOrExternalInput input) {
-        IsTunnelInternalOrExternalOutput output = null;
-        return RpcResultBuilder.success(output).buildFuture();
+        throw new UnsupportedOperationException("TODO");
     }
 
     @Override
@@ -168,8 +167,7 @@ public final class ItmRpcTestImpl implements ItmRpcService {
     @Override
     public synchronized Future<RpcResult<GetInternalOrExternalInterfaceNameOutput>> getInternalOrExternalInterfaceName(
             GetInternalOrExternalInterfaceNameInput input) {
-        GetInternalOrExternalInterfaceNameOutput output = null;
-        return RpcResultBuilder.success(output).buildFuture();
+        throw new UnsupportedOperationException("TODO");
     }
 
     @Override
@@ -185,18 +183,17 @@ public final class ItmRpcTestImpl implements ItmRpcService {
 
     @Override
     public synchronized Future<RpcResult<Void>> setBfdEnableOnTunnel(SetBfdEnableOnTunnelInput input) {
-        return null;
+        throw new UnsupportedOperationException("TODO");
     }
 
     @Override
     public synchronized Future<RpcResult<GetEgressActionsForTunnelOutput>>
         getEgressActionsForTunnel(GetEgressActionsForTunnelInput input) {
-        return null;
+        throw new UnsupportedOperationException("TODO");
     }
 
     @Override
     public synchronized Future<RpcResult<GetTunnelTypeOutput>> getTunnelType(GetTunnelTypeInput input) {
-        // To Do
-        return null;
+        throw new UnsupportedOperationException("TODO");
     }
 }