Search in sources :

Example 26 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method reportsViewNotGenerated.

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

Example 27 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method runningStory.

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

Example 28 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method usingThreads.

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

Example 29 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method processingSystemProperties.

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

Example 30 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method generatingMapsView.

@Override
public void generatingMapsView(final File outputDirectory, final StoryMaps storyMaps, final Properties viewProperties) {
    logger.debug("generatingMapsView" + outputDirectory + storyMaps);
    final LinkedList<Exception> exceptions = new LinkedList<>();
    for (final EmbedderMonitor monitor : this.monitors) {
        try {
            monitor.generatingMapsView(outputDirectory, storyMaps, viewProperties);
        } catch (final Exception suppressed) {
            logger.error("exception during calling " + monitor.getClass() + "#generatingMapsView", 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