package moe.tristan.easyfxml;

import org.junit.Before;

import static org.junit.Assume.assumeFalse;

/**
 * This class skips all extending test classes tests if we are in a CI
 * environment. Many things are reasons for this including no AWT
 * support for some of the functionnalities in headless environments.
 * I'll get a non-headless test env sometimes.
 */
@SuppressWarnings("AccessOfSystemProperties")
public class CIIncompatibleTest {
    @Before
    public void ensureNotCi() {
        final String envProperty = System.getProperty("env");
        if (envProperty != null) {
            assumeFalse("ci".equals(System.getProperty("env")));
        }
        System.out.println("WAS NOT CI ENVIRONMENT. EXECUTING TEST.");
    }
}

package moe.tristan.easyfxml;

import org.junit.Before;

import static org.junit.Assume.assumeFalse;

/**
 * This class skips all extending test classes tests if we are in a CI
 * environment. Many things are reasons for this including no AWT
 * support for some of the functionnalities in headless environments.
 * I'll get a non-headless test env sometimes.
 */
@SuppressWarnings("AccessOfSystemProperties")
public class CIIncompatibleTest {
    @Before
    public void ensureNotCi() {
        final String envProperty = System.getProperty("env");
        if (envProperty != null) {
            assumeFalse("ci".equals(envProperty));
        }
        System.out.println("WAS NOT CI ENVIRONMENT. EXECUTING TEST.");
    }
}

Fix useless access to System#getProperty(String)