Merge "BUG-731: fix warnings from missing generic arguments"
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / implementation / src / test / java / org / opendaylight / controller / sal / connector / remoterpc / MockRoutingTable.java
index 7b0ac2c6a0dc85d085983b5f78541dc90b0c62c6..179051e4d48ecb2e2f7f7d81b3cabaedb267c5f0 100644 (file)
@@ -1,15 +1,19 @@
+/*
+ * Copyright (c) 2014 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 org.opendaylight.controller.sal.connector.remoterpc;
 
-import org.opendaylight.controller.sal.connector.remoterpc.api.RouteChangeListener;
+import java.util.HashSet;
+import java.util.Set;
+
 import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTable;
 import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTableException;
 import org.opendaylight.controller.sal.connector.remoterpc.api.SystemException;
 
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
 /**
  * Mock implementation of routing table
  */
@@ -32,29 +36,44 @@ public class MockRoutingTable<K, V> implements RoutingTable {
   }
 
   @Override
-  public void removeGlobalRoute(Object o) throws RoutingTableException, SystemException {
-
+  public void addRoutes(Set set, Object o) throws RoutingTableException, SystemException {
+    //To change body of implemented methods use File | Settings | File Templates.
   }
 
   @Override
-  public Set getRoutes(Object o) {
-    Set<String> routes = new HashSet<String>();
-    routes.add("localhost:5554");
-    return routes;
+  public void removeRoutes(Set set, Object o) throws RoutingTableException, SystemException {
+    //To change body of implemented methods use File | Settings | File Templates.
   }
 
   @Override
-  public Set<Map.Entry> getAllRoutes() {
-    return Collections.emptySet();
+  public void removeGlobalRoute(Object o) throws RoutingTableException, SystemException {
+
   }
 
   @Override
-  public Object getARoute(Object o) {
-    return null;
+  public Object getGlobalRoute(Object o) throws RoutingTableException, SystemException {
+    return null;  //To change body of implemented methods use File | Settings | File Templates.
   }
 
   @Override
-  public void registerRouteChangeListener(RouteChangeListener routeChangeListener) {
+  public Set<String> getRoutes(Object o) {
+    Set<String> routes = new HashSet<String>();
+    routes.add("localhost:5554");
+    return routes;
+  }
 
+  @Override
+  public Object getLastAddedRoute(Object o) {
+    return null;  //To change body of implemented methods use File | Settings | File Templates.
   }
+
+//  @Override
+//  public Set<Map.Entry> getAllRoutes() {
+//    return Collections.emptySet();
+//  }
+
+//  @Override
+//  public Object getARoute(Object o) {
+//    return null;
+//  }
 }