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

net.serenitybdd.reports.configuration.CustomReportTemplateProperty.kt Maven / Gradle / Ivy

The newest version!
package net.serenitybdd.reports.configuration

import net.serenitybdd.core.environment.EnvironmentSpecificConfiguration
import net.thucydides.core.util.EnvironmentVariables

class CustomReportTemplateProperty : ReportProperty {

    companion object {
        private const val CUSTOM_TEMPLATE_PROPERTY = "asciidoc.template"
    }

    override fun configuredIn(environmentVariables: EnvironmentVariables) : String? {
        return EnvironmentSpecificConfiguration.from(environmentVariables)
                                                .getOptionalProperty(CUSTOM_TEMPLATE_PROPERTY)
                                                .orElse(null)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy