X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-remoterpc-connector%2Fimplementation%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fconnector%2Fremoterpc%2FMockRoutingTable.java;h=179051e4d48ecb2e2f7f7d81b3cabaedb267c5f0;hp=9c74be93bd7d28e22222cffb8273c2ae5b2505f7;hb=5081a78bb782babe13ff70f342b13baa01d6b5ce;hpb=405ea7ce68d22bd3d2501857c5253793b581b086 diff --git a/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/test/java/org/opendaylight/controller/sal/connector/remoterpc/MockRoutingTable.java b/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/test/java/org/opendaylight/controller/sal/connector/remoterpc/MockRoutingTable.java index 9c74be93bd..179051e4d4 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/test/java/org/opendaylight/controller/sal/connector/remoterpc/MockRoutingTable.java +++ b/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/test/java/org/opendaylight/controller/sal/connector/remoterpc/MockRoutingTable.java @@ -7,16 +7,13 @@ */ 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 */ @@ -39,29 +36,44 @@ public class MockRoutingTable 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 routes = new HashSet(); - 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 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 getRoutes(Object o) { + Set routes = new HashSet(); + 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 getAllRoutes() { +// return Collections.emptySet(); +// } + +// @Override +// public Object getARoute(Object o) { +// return null; +// } }