commit | e2eb7fcf04ef209588bd4a9e76933d2a520a8380 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Mon Oct 14 10:00:55 2013 -0700 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Tue Oct 15 10:14:00 2013 -0700 |
tree | 75aeeff20993bba35a5a27b79bbf85a57fa090be | |
parent | ec1ba137592f7fb330e147188681e4650ffa5a8d [diff] |
Suppress warnings emitted by test code
diff --git a/src/test/java/net/onrc/onos/graph/GraphDBConnectionTest.java b/src/test/java/net/onrc/onos/graph/GraphDBConnectionTest.java index bee936d..397ed88 100644 --- a/src/test/java/net/onrc/onos/graph/GraphDBConnectionTest.java +++ b/src/test/java/net/onrc/onos/graph/GraphDBConnectionTest.java
@@ -55,6 +55,7 @@ } + @SuppressWarnings("unchecked") private void expectDBConnectionAvailable() throws Exception { isGraphOpen = false; @@ -62,7 +63,7 @@ mockStatic(TitanFactory.class); mockStatic(EventTransactionalGraph.class); graph = createMock(TitanGraph.class); - eg = createMock(EventTransactionalGraph.class); + eg = (EventTransactionalGraph<TitanGraph>)createMock(EventTransactionalGraph.class); // setup expectations expect(graph.isOpen()).andAnswer(new IAnswer<Boolean>() {
diff --git a/src/test/java/net/onrc/onos/ofcontroller/core/INetMapTopologyObjectsISwitchObjectTest.java b/src/test/java/net/onrc/onos/ofcontroller/core/INetMapTopologyObjectsISwitchObjectTest.java index e063dcb..dacfdb5 100644 --- a/src/test/java/net/onrc/onos/ofcontroller/core/INetMapTopologyObjectsISwitchObjectTest.java +++ b/src/test/java/net/onrc/onos/ofcontroller/core/INetMapTopologyObjectsISwitchObjectTest.java
@@ -226,7 +226,7 @@ portObj.setDevice(devObj); int i = 0; - for(IDeviceObject dev : swObj.getDevices()){ + for(@SuppressWarnings("unused") IDeviceObject dev : swObj.getDevices()){ i++; } assertEquals(i, numOfDev);
diff --git a/src/test/java/net/onrc/onos/ofcontroller/core/internal/TestableLinkStorageImpl.java b/src/test/java/net/onrc/onos/ofcontroller/core/internal/TestableLinkStorageImpl.java index 2f90d48..ecba546 100644 --- a/src/test/java/net/onrc/onos/ofcontroller/core/internal/TestableLinkStorageImpl.java +++ b/src/test/java/net/onrc/onos/ofcontroller/core/internal/TestableLinkStorageImpl.java
@@ -18,6 +18,7 @@ * */ +@SuppressWarnings("deprecation") public class TestableLinkStorageImpl extends LinkStorageImpl { protected TitanGraph graph;