Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixing warnings in the sal sub-project.
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
sal
/
core
/
NodeConnectorTest.java
diff --git
a/opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/NodeConnectorTest.java
b/opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/NodeConnectorTest.java
index 35c54e79e387779eac7c0540084badb2da0b5ebc..f85b7b4b01c5651c274bcbdb85d9ec33efa936ac 100644
(file)
--- a/
opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/NodeConnectorTest.java
+++ b/
opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/NodeConnectorTest.java
@@
-26,6
+26,7
@@
public class NodeConnectorTest {
public void testNodeConnectorOpenFlowOfWrongType() {
try {
Node n1 = new Node(Node.NodeIDType.OPENFLOW, new Long(110L));
public void testNodeConnectorOpenFlowOfWrongType() {
try {
Node n1 = new Node(Node.NodeIDType.OPENFLOW, new Long(110L));
+ @SuppressWarnings("unused")
NodeConnector of1 = new NodeConnector(
NodeConnector.NodeConnectorIDType.OPENFLOW, new String(
"0xDEADBEEFCAFE0001L"), n1);
NodeConnector of1 = new NodeConnector(
NodeConnector.NodeConnectorIDType.OPENFLOW, new String(
"0xDEADBEEFCAFE0001L"), n1);
@@
-45,6
+46,7
@@
public class NodeConnectorTest {
public void testNodeConnectorONEPKOfWrongType() {
try {
Node n1 = new Node(Node.NodeIDType.ONEPK, new String("Router1"));
public void testNodeConnectorONEPKOfWrongType() {
try {
Node n1 = new Node(Node.NodeIDType.ONEPK, new String("Router1"));
+ @SuppressWarnings("unused")
NodeConnector onepk1 = new NodeConnector(
NodeConnector.NodeConnectorIDType.ONEPK, new Long(
0xDEADBEEFCAFE0001L), n1);
NodeConnector onepk1 = new NodeConnector(
NodeConnector.NodeConnectorIDType.ONEPK, new Long(
0xDEADBEEFCAFE0001L), n1);
@@
-64,6
+66,7
@@
public class NodeConnectorTest {
public void testNodeConnectorPCEPOfWrongType() {
try {
Node n1 = new Node(Node.NodeIDType.PCEP, new UUID(0L, 0L));
public void testNodeConnectorPCEPOfWrongType() {
try {
Node n1 = new Node(Node.NodeIDType.PCEP, new UUID(0L, 0L));
+ @SuppressWarnings("unused")
NodeConnector pcep1 = new NodeConnector(
NodeConnector.NodeConnectorIDType.PCEP, new Long(
0xDEADBEEFCAFE0001L), n1);
NodeConnector pcep1 = new NodeConnector(
NodeConnector.NodeConnectorIDType.PCEP, new Long(
0xDEADBEEFCAFE0001L), n1);
@@
-310,6
+313,7
@@
public class NodeConnectorTest {
}
}
}
}
+ @SuppressWarnings("unused")
@Test
public void testIncompatibleNodes() {
try {
@Test
public void testIncompatibleNodes() {
try {