Search in sources :

Example 11 with EmbedderMonitor

use of org.jbehave.core.embedder.EmbedderMonitor in project serenity-jbehave by serenity-bdd.

the class CompositeEmbedderMonitor method embeddablesSkipped.

@Override
public void embeddablesSkipped(final List<String> classNames) {
    logger.debug("embeddablesSkipped" + classNames.size());
    final LinkedList<Exception> exceptions = new LinkedList<>();
    for (final EmbedderMonitor monitor : this.monitors) {
        try {
            monitor.embeddablesSkipped(classNames);
        } catch (final Exception suppressed) {
            logger.error("exception during calling " + monitor.getClass() + "#embeddablesSkipped", suppressed);
            exceptions.add(suppressed);
        }
    }
    processSuppressed(exceptions);
}
Also used : EmbedderMonitor(org.jbehave.core.embedder.EmbedderMonitor)

Example 12 with EmbedderMonitor

use of org.jbehave.core.embedder.EmbedderMonitor in project serenity-jbehave by serenity-bdd.

the class CompositeEmbedderMonitor method generatingReportsView.

@Override
public void generatingReportsView(final File outputDirectory, final List<String> formats, final Properties viewProperties) {
    logger.debug("generatingReportsView" + outputDirectory + formats + viewProperties);
    final LinkedList<Exception> exceptions = new LinkedList<>();
    for (final EmbedderMonitor monitor : this.monitors) {
        try {
            monitor.generatingReportsView(outputDirectory, formats, viewProperties);
        } catch (final Exception suppressed) {
            logger.error("exception during calling " + monitor.getClass() + "#generatingReportsView", suppressed);
            exceptions.add(suppressed);
        }
    }
    processSuppressed(exceptions);
}
Also used : EmbedderMonitor(org.jbehave.core.embedder.EmbedderMonitor)

Example 13 with EmbedderMonitor

use of org.jbehave.core.embedder.EmbedderMonitor in project serenity-jbehave by serenity-bdd.

the class CompositeEmbedderMonitor method navigatorViewGenerationFailed.

@Override
public void navigatorViewGenerationFailed(final File outputDirectory, final Properties viewResources, final Throwable cause) {
    logger.debug("navigatorViewGenerationFailed" + outputDirectory + viewResources + cause);
    final LinkedList<Exception> exceptions = new LinkedList<>();
    for (final EmbedderMonitor monitor : this.monitors) {
        try {
            monitor.navigatorViewGenerationFailed(outputDirectory, viewResources, cause);
        } catch (final Exception suppressed) {
            logger.error("exception during calling " + monitor.getClass() + "#navigatorViewGenerationFailed", suppressed);
            exceptions.add(suppressed);
        }
    }
    processSuppressed(exceptions);
}
Also used : EmbedderMonitor(org.jbehave.core.embedder.EmbedderMonitor)

Example 14 with EmbedderMonitor

use of org.jbehave.core.embedder.EmbedderMonitor in project serenity-jbehave by serenity-bdd.

the class CompositeEmbedderMonitor method reportsViewGenerationFailed.

@Override
public void reportsViewGenerationFailed(final File outputDirectory, final List<String> formats, final Properties viewProperties, final Throwable cause) {
    logger.debug("reportsViewGenerationFailed" + outputDirectory + formats + viewProperties + cause);
    final LinkedList<Exception> exceptions = new LinkedList<>();
    for (final EmbedderMonitor monitor : this.monitors) {
        try {
            monitor.reportsViewGenerationFailed(outputDirectory, formats, viewProperties, cause);
        } catch (final Exception suppressed) {
            logger.error("exception during calling " + monitor.getClass() + "#reportsViewGenerationFailed", suppressed);
            exceptions.add(suppressed);
        }
    }
    processSuppressed(exceptions);
}
Also used : EmbedderMonitor(org.jbehave.core.embedder.EmbedderMonitor)

Example 15 with EmbedderMonitor

use of org.jbehave.core.embedder.EmbedderMonitor in project serenity-jbehave by serenity-bdd.

the class CompositeEmbedderMonitor method usingExecutorService.

@Override
public void usingExecutorService(final ExecutorService executorService) {
    logger.debug("usingExecutorService" + executorService);
    final LinkedList<Exception> exceptions = new LinkedList<>();
    for (final EmbedderMonitor monitor : this.monitors) {
        try {
            monitor.usingExecutorService(executorService);
        } catch (final Exception suppressed) {
            logger.error("exception during calling " + monitor.getClass() + "#usingExecutorService", suppressed);
            exceptions.add(suppressed);
        }
    }
    processSuppressed(exceptions);
}
Also used : EmbedderMonitor(org.jbehave.core.embedder.EmbedderMonitor)

Aggregations

EmbedderMonitor (org.jbehave.core.embedder.EmbedderMonitor)36 File (java.io.File)2 Properties (java.util.Properties)2 Matchers.containsString (org.hamcrest.Matchers.containsString)2 InjectableEmbedder (org.jbehave.core.InjectableEmbedder)2 Embedder (org.jbehave.core.embedder.Embedder)2 BatchFailures (org.jbehave.core.failures.BatchFailures)2 ReportsCount (org.jbehave.core.reporters.ReportsCount)2 Test (org.junit.Test)2 Log (org.apache.maven.plugin.logging.Log)1 Project (org.apache.tools.ant.Project)1