Mark potentially-static methods as static
[genius.git] / mdsalutil / mdsalutil-api / src / test / java / org / opendaylight / genius / mdsalutil / actions / ActionSetFieldEthernetSourceTest.java
index 454eb5cf61a6b80ba70c7e664f84cfa58d1659aa..9077e05fc4356290f60057a002b5891be0e29ea6 100644 (file)
@@ -24,14 +24,14 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class ActionSetFieldEthernetSourceTest {
     private static final String MAC_ADDRESS = "11:22:33:44:55:66";
 
-    private XtendBeanGenerator generator = new XtendBeanGenerator();
+    private final XtendBeanGenerator generator = new XtendBeanGenerator();
 
     @Test
     public void actionInfoTest() {
         verifyAction(new ActionSetFieldEthernetSource(new MacAddress(MAC_ADDRESS)).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().getEthernetMatch());
@@ -44,7 +44,7 @@ public class ActionSetFieldEthernetSourceTest {
     public void generateAction() {
         ActionInfo actionInfo = new ActionSetFieldEthernetSource(new MacAddress(MAC_ADDRESS));
         actionInfo.buildAction();
-        assertEquals(("MacAddress{_value=" + MAC_ADDRESS + "}"),
+        assertEquals("MacAddress{_value=" + MAC_ADDRESS + "}",
                 ((ActionSetFieldEthernetSource) actionInfo).getSource().toString());
     }
 }