package org.ovirt.engine.core.utils.network.predicate;

import org.junit.Assert;
import org.junit.Test;
import org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface;
import org.ovirt.engine.core.utils.linq.Predicate;

abstract public class AbstractVdsNetworkInterfacePredicateTest {

    private final String VALID = "VALID";
    private final String INVALID = "INVALID";
    private Predicate<VdsNetworkInterface> underTest;

    protected String getVALID() {
        return VALID;
    }

    protected String getINVALID() {
        return INVALID;
    }

    protected void setUnderTest(Predicate<VdsNetworkInterface> underTest) {
        this.underTest = underTest;
    }

    abstract public VdsNetworkInterface generateVdsNetworkInterface(String value);

    @Test
    public void checkNullAddress() {
        Assert.assertFalse(underTest.eval(generateVdsNetworkInterface(null)));
    }

    @Test
    public void checkInvalidAddress() {
        Assert.assertFalse(underTest.eval(generateVdsNetworkInterface(getINVALID())));
    }

    @Test
    public void checkValidAddress() {
        Assert.assertTrue(underTest.eval(generateVdsNetworkInterface(getVALID())));
    }

}

@@ -301,32 +301,39 @@
  %7B%0A%0A    private 
+static 
 final String VAL
@@ -358,16 +358,23 @@
 private 
+static 
 final St

Make constants static