Added functionality to delete links and to add links to remote switches that have a link to a local switch.
diff --git a/src/test/java/net/floodlightcontroller/linkdiscovery/internal/LinkStorageImplTest.java b/src/test/java/net/floodlightcontroller/linkdiscovery/internal/LinkStorageImplTest.java
index 1d0bd95..0324a51 100644
--- a/src/test/java/net/floodlightcontroller/linkdiscovery/internal/LinkStorageImplTest.java
+++ b/src/test/java/net/floodlightcontroller/linkdiscovery/internal/LinkStorageImplTest.java
@@ -96,7 +96,7 @@
@Test
public void testGetLinks(){
//TODO Make sure this works when the implementation is written
- List<Link> list = linkStorage.getLinks(Long.decode("0x0000000000000a01"), 2);
+ List<Link> list = linkStorage.getLinks(Long.decode("0x0000000000000a01"), (short)2);
assertEquals(list.size(), 1);
@@ -131,7 +131,7 @@
public void testDeleteLinks(){
//TODO Make sure this works when the implementation is written
- linkStorage.deleteLinks(Long.decode("0x0000000000000a01"), 2);
+ linkStorage.deleteLinksOnPort(Long.decode("0x0000000000000a01"), (short)2);
//Test if it was deleted correctly with the Gremlin API
GremlinPipeline<Vertex, Vertex> pipe = new GremlinPipeline<Vertex, Vertex>();