Search in sources :

Example 16 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method embeddableFailed.

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

Example 17 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method runningWithAnnotatedEmbedderRunner.

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

Example 18 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method metaNotAllowed.

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

Example 19 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method storiesNotAllowed.

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

Example 20 with EmbedderMonitor

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

the class CompositeEmbedderMonitor method navigatorViewNotGenerated.

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