Update unit testing - Renderer
[transportpce.git] / renderer / src / test / java / org / opendaylight / transportpce / renderer / NodeIdPairTest.java
index 41d07df37c0ceb2e52a7a120c9cbc8587a734f6d..2f40c3de88578f7db07b4392e7cbe4655b0b2623 100644 (file)
@@ -29,7 +29,7 @@ public class NodeIdPairTest {
     }
 
     @Parameterized.Parameters
-    public static Collection primeNumbers() {
+    public static Collection nodes() {
         NodeIdPair same = new NodeIdPair("nodeS", "CLIENT");
         return Arrays.asList(new Object[][] {
                 { new NodeIdPair("",""), null, false },
@@ -49,7 +49,7 @@ public class NodeIdPairTest {
     @Test
     public void equalityTest() {
         Assert.assertEquals(this.equality, firstPair.equals(this.secondPair));
-        if (this.secondPair != null && this.firstPair.getClass().equals(this.secondPair.getClass())) {
+        if ((this.secondPair != null) && this.firstPair.getClass().equals(this.secondPair.getClass())) {
             Assert.assertEquals(this.equality, this.firstPair.hashCode() == this.secondPair.hashCode());
         }
     }