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

cz.pumpitup.pn5.reporting.prometheus.PrometheusReporterService Maven / Gradle / Ivy

There is a newer version: 0.8.38
Show newest version
package cz.pumpitup.pn5.reporting.prometheus;

import cz.pumpitup.pn5.reporting.NullReporter;
import cz.pumpitup.pn5.reporting.junit.JUnitReporterService;
import cz.pumpitup.pn5.reporting.spi.ReporterSPI;
import org.junit.jupiter.api.extension.ExtensionContext;

public class PrometheusReporterService implements JUnitReporterService {
    @Override
    public ReporterSPI getReporter(ExtensionContext extensionContext) {
        final PrometheusReporter prometheusReporter = PrometheusReporter.resolve(extensionContext);
        if (prometheusReporter == null) {
            return new NullReporter();
        }
        return prometheusReporter;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy