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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations