Search in sources :

Example 6 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method systemPropertySet.

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

Example 7 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method storiesSkipped.

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

Example 8 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method generatingNavigatorView.

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

Example 9 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method storyTimeout.

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

Example 10 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method runningEmbeddable.

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