io.qase.commons.config.ReportConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qase-java-commons Show documentation
Show all versions of qase-java-commons Show documentation
Qase TMS Reporter's common classes
The newest version!
package io.qase.commons.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ReportConfig {
private static final Logger logger = LoggerFactory.getLogger(ReportConfig.class);
public Driver driver = Driver.LOCAL;
public ConnectionConfig connection;
public ReportConfig() {
this.connection = new ConnectionConfig();
}
public void setDriver(String driver) {
try {
this.driver = Driver.valueOf(driver.toUpperCase());
} catch (IllegalArgumentException e) {
this.driver = Driver.LOCAL;
logger.error("Unknown driver: {}. Supported drivers: {}", driver, Driver.values());
}
}
public String getDriver() {
return driver.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy