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

io.qase.commons.config.ReportConfig Maven / Gradle / Ivy

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