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

net.serenitybdd.maven.plugins.HistoryDirectory Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.maven.plugins;

import net.thucydides.model.ThucydidesSystemProperty;
import net.thucydides.model.util.EnvironmentVariables;

import java.util.Optional;

import static net.thucydides.model.ThucydidesSystemProperty.SERENITY_HISTORY_DIRECTORY;

public class HistoryDirectory {

    private final static String DEFAULT_HISTORY_DIRECTORY = "history";

    public static String configuredIn(EnvironmentVariables environmentVariables, String configuredHistoryPath) {
        return SERENITY_HISTORY_DIRECTORY.from(environmentVariables,
                                               Optional.ofNullable(configuredHistoryPath).orElse(DEFAULT_HISTORY_DIRECTORY));

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy