Mark potentially-static methods as static
[genius.git] / mdsalutil / mdsalutil-api / src / test / java / org / opendaylight / genius / mdsalutil / actions / ActionSetSourceIpTest.java
index f987361705f3cc0a6ffdcc82becb3a86e6d53897..d83332b324eafdbdad30ab3e22c928f45f5dc59a 100644 (file)
@@ -26,7 +26,7 @@ public class ActionSetSourceIpTest {
     private static final String IP_ADDRESS = "1.2.3.4";
     private static final String IP_MASK = "32";
 
-    private XtendBeanGenerator generator = new XtendBeanGenerator();
+    private final XtendBeanGenerator generator = new XtendBeanGenerator();
 
     @Test
     public void actionInfoTest() {
@@ -35,7 +35,7 @@ public class ActionSetSourceIpTest {
         verifyAction(new ActionSetSourceIp(new Ipv4Prefix(IP_ADDRESS + "/" + IP_MASK)).buildAction());
     }
 
-    private void verifyAction(Action action) {
+    private static void verifyAction(Action action) {
         assertTrue(action.getAction() instanceof SetFieldCase);
         SetFieldCase actionCase = (SetFieldCase) action.getAction();
         assertNotNull(actionCase.getSetField().getLayer3Match());
@@ -47,7 +47,7 @@ public class ActionSetSourceIpTest {
     @Test
     public void generateAction() {
         ActionInfo actionInfo = new ActionSetSourceIp(IP_ADDRESS);
-        assertEquals(("Ipv4Prefix{_value=" + IP_ADDRESS + "/" + IP_MASK + "}"),
+        assertEquals("Ipv4Prefix{_value=" + IP_ADDRESS + "/" + IP_MASK + "}",
                ((ActionSetSourceIp) actionInfo).getSource().toString());
     }
 }