aquality.tracking.integrations.core.Configuration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aquality-tracking-integrations-core Show documentation
Show all versions of aquality-tracking-integrations-core Show documentation
Aquality Tracking integration core for JVM-based test frameworks.
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