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

aquality.tracking.integrations.core.Configuration Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package aquality.tracking.integrations.core;

import lombok.Data;

import static aquality.tracking.integrations.core.utilities.EnvironmentReader.getValueOrDefault;

@Data
public class Configuration {
    private String host;
    private String token;
    private int projectId;
    private String executor;

    private boolean enabled;
    private String suiteName;
    private String buildName;
    private String environment;
    private String ciBuild;
    private boolean debug;

    public boolean isEnabled() {
        return getValueOrDefault("aquality.enabled", Boolean.class, enabled);
    }

    public String getSuiteName() {
        return getValueOrDefault("aquality.suiteName", String.class, suiteName);
    }

    public String getBuildName() {
        return getValueOrDefault("aquality.buildName", String.class, buildName);
    }

    public String getEnvironment() {
        return getValueOrDefault("aquality.environment", String.class, environment);
    }

    public String getCiBuild() {
        return getValueOrDefault("aquality.ciBuild", String.class, ciBuild);
    }

    public boolean isDebug() {
        return getValueOrDefault("aquality.debug", Boolean.class, debug);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy