X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-remoterpc-connector%2Fimplementation%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fconnector%2Fremoterpc%2FMockRoutingTable.java;h=0fe0155bb6a90e48a24e3ce7d3ecaaee37f956f8;hb=729aba7effe9c5fd11d5a8738faa25b603010a1e;hp=7b0ac2c6a0dc85d085983b5f78541dc90b0c62c6;hpb=80794420bbe8e585964ad17fb2d82dbab75f94b0;p=controller.git 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 7b0ac2c6a0..0fe0155bb6 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 @@ -1,3 +1,10 @@ +/* + * 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; @@ -31,11 +38,26 @@ public class MockRoutingTable implements RoutingTable { } + @Override + public void addRoutes(Set set, Object o) throws RoutingTableException, SystemException { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void removeRoutes(Set set, Object o) throws RoutingTableException, SystemException { + //To change body of implemented methods use File | Settings | File Templates. + } + @Override public void removeGlobalRoute(Object o) throws RoutingTableException, SystemException { } + @Override + public Object getGlobalRoute(Object o) throws RoutingTableException, SystemException { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + @Override public Set getRoutes(Object o) { Set routes = new HashSet(); @@ -44,17 +66,17 @@ public class MockRoutingTable implements RoutingTable { } @Override - public Set getAllRoutes() { - return Collections.emptySet(); + public Object getLastAddedRoute(Object o) { + return null; //To change body of implemented methods use File | Settings | File Templates. } - @Override - public Object getARoute(Object o) { - return null; - } +// @Override +// public Set getAllRoutes() { +// return Collections.emptySet(); +// } - @Override - public void registerRouteChangeListener(RouteChangeListener routeChangeListener) { - - } +// @Override +// public Object getARoute(Object o) { +// return null; +// } }