Merge "Bug 1029: Remove dead code: sal-schema-repository-api"
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / implementation / src / test / java / org / opendaylight / controller / sal / connector / remoterpc / MockRoutingTable.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.sal.connector.remoterpc;
9
10 import java.util.HashSet;
11 import java.util.Set;
12
13 import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTable;
14 import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTableException;
15 import org.opendaylight.controller.sal.connector.remoterpc.api.SystemException;
16
17 /**
18  * Mock implementation of routing table
19  */
20 public class MockRoutingTable<K, V> implements RoutingTable {
21
22
23   @Override
24   public void addRoute(Object o, Object o2) throws RoutingTableException, SystemException {
25
26   }
27
28   @Override
29   public void addGlobalRoute(Object o, Object o2) throws RoutingTableException, SystemException {
30
31   }
32
33   @Override
34   public void removeRoute(Object o, Object o2) {
35
36   }
37
38   @Override
39   public void addRoutes(Set set, Object o) throws RoutingTableException, SystemException {
40     //To change body of implemented methods use File | Settings | File Templates.
41   }
42
43   @Override
44   public void removeRoutes(Set set, Object o) throws RoutingTableException, SystemException {
45     //To change body of implemented methods use File | Settings | File Templates.
46   }
47
48   @Override
49   public void removeGlobalRoute(Object o) throws RoutingTableException, SystemException {
50
51   }
52
53   @Override
54   public Object getGlobalRoute(Object o) throws RoutingTableException, SystemException {
55     return null;  //To change body of implemented methods use File | Settings | File Templates.
56   }
57
58   @Override
59   public Set<String> getRoutes(Object o) {
60     Set<String> routes = new HashSet<String>();
61     routes.add("localhost:5554");
62     return routes;
63   }
64
65   @Override
66   public Object getLastAddedRoute(Object o) {
67     return null;  //To change body of implemented methods use File | Settings | File Templates.
68   }
69
70 //  @Override
71 //  public Set<Map.Entry> getAllRoutes() {
72 //    return Collections.emptySet();
73 //  }
74
75 //  @Override
76 //  public Object getARoute(Object o) {
77 //    return null;
78 //  }
79 }