doc / ch.tutteli.atrium.reporting / ReporterFactory / specifyFactoryIfNotYetSet

specifyFactoryIfNotYetSet

fun specifyFactoryIfNotYetSet(reporterFactoryId: String): Unit (source)
Deprecated: A Reporter should now be be retrieved via ComponentFactoryContainer where the different components of a reporter should also be defined via ComponentFactoryContainer. ReporterFactory will be removed with 0.17.0

Sets Atrium's property with key ATRIUM_PROPERTY_KEY (which is ch.tutteli.atrium.reporting.reporterFactory) to the given reporterFactoryId if another id was not yet specified before.

Use specifyFactory if you do not care if another id was specified before or in other words, if you want to overwrite a potentially previously defined id.