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.");
    }
}

@@ -614,34 +614,27 @@
 .equals(
-System.get
+env
 Property
 (%22env%22))
@@ -625,23 +625,16 @@
 Property
-(%22env%22)
 ));%0A    

Fix useless access to System#getProperty(String)