All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dadrox.sbt.junit.ExistentialSystemProperty Maven / Gradle / Ivy

package com.dadrox.sbt.junit;

public class ExistentialSystemProperty {
    private String property;
    private boolean defaultValue;

    public ExistentialSystemProperty(String property, boolean defaultValue) {
        this.property = property;
        this.defaultValue = defaultValue;
    }

    public boolean exists() {
        String p = System.getProperty(property);
        if (p != null) return true;
        return false;
    }

    public boolean resolve() {
        if (exists()) return true;
        return defaultValue;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy