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

com.epam.jdi.uitests.gui.GuiSettings Maven / Gradle / Ivy

package com.epam.jdi.uitests.gui;

import com.epam.jdi.uitests.core.settings.JDISettings;


import java.io.IOException;

import static com.epam.commons.PropertyReader.fillAction;
import static com.epam.commons.PropertyReader.getProperties;
import static org.slf4j.LoggerFactory.getLogger;

/**
 * Created by Natalia_Grebenshchikova on 1/18/2016.
 */
public abstract  class GuiSettings extends JDISettings {

    public static String imageRoot;
    public static String applicationType;
    public static String webDomain;

    public static void init() {
        try {
            getProperties(jdiSettingsPath);
        } catch (IOException e) {
            e.printStackTrace();
        }
        fillAction(p -> imageRoot = p, "imageRoot");
        fillAction(p -> webDomain = p, "domain");
        fillAction(p -> applicationType = p, "applicationType");

        logger = getLogger("JDI Logger");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy