Merge "BUG8607 Fix checkstyle issues"
[openflowplugin.git] / applications / forwardingrules-manager / src / test / java / test / mock / util / RpcProviderRegistryMock.java
index ff17a0c366f7edc08482fa145db17563964c6b91..b57858ea0fff862514e037105d7d27c234ace851 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
 package test.mock.util;
 
 import org.opendaylight.controller.md.sal.common.api.routing.RouteChangeListener;
@@ -7,23 +14,29 @@ import org.opendaylight.controller.sal.binding.api.rpc.RpcContextIdentifier;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.SalGroupService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.SalMeterService;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.onf.bundle.service.rev170124.SalBundleService;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.SalTableService;
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 import org.opendaylight.yangtools.yang.binding.RpcService;
 
 public class RpcProviderRegistryMock implements RpcProviderRegistry {
     @Override
-    public <T extends RpcService> BindingAwareBroker.RpcRegistration<T> addRpcImplementation(Class<T> serviceInterface, T implementation) throws IllegalStateException {
+    public <T extends RpcService> BindingAwareBroker.RpcRegistration<T> addRpcImplementation(Class<T> serviceInterface,
+            T implementation) throws IllegalStateException {
         return null;
     }
 
     @Override
-    public <T extends RpcService> BindingAwareBroker.RoutedRpcRegistration<T> addRoutedRpcImplementation(Class<T> serviceInterface, T implementation) throws IllegalStateException {
+    public <T extends RpcService> BindingAwareBroker.RoutedRpcRegistration<T> addRoutedRpcImplementation(
+            Class<T> serviceInterface, T implementation) throws IllegalStateException {
         return null;
     }
 
     @Override
-    public <L extends RouteChangeListener<RpcContextIdentifier, InstanceIdentifier<?>>> ListenerRegistration<L> registerRouteChangeListener(L listener) {
+    public <L extends RouteChangeListener<RpcContextIdentifier,
+        InstanceIdentifier<?>>> ListenerRegistration<L> registerRouteChangeListener(
+            L listener) {
         return null;
     }
 
@@ -35,6 +48,10 @@ public class RpcProviderRegistryMock implements RpcProviderRegistry {
             return (T) new SalGroupServiceMock();
         } else if (serviceInterface.equals(SalMeterService.class)) {
             return (T) new SalMeterServiceMock();
+        } else if (serviceInterface.equals(SalTableService.class)) {
+            return (T) new SalTableServiceMock();
+        } else if (serviceInterface.equals(SalBundleService.class)) {
+            return (T) new SalBundleServiceMock();
         } else {
             return null;
         }