Search in sources :

Example 1 with Interaction

use of au.com.dius.pact.model.Interaction in project pact-jvm by DiUS.

the class InteractionRunner method run.

// Running
public void run(final RunNotifier notifier) {
    for (final Interaction interaction : pact.getInteractions()) {
        final Description description = describeChild(interaction);
        notifier.fireTestStarted(description);
        try {
            interactionBlock(interaction).evaluate();
        } catch (final Throwable e) {
            notifier.fireTestFailure(new Failure(description, e));
        } finally {
            notifier.fireTestFinished(description);
        }
    }
}
Also used : Description(org.junit.runner.Description) Interaction(au.com.dius.pact.model.Interaction) Failure(org.junit.runner.notification.Failure)

Aggregations

Interaction (au.com.dius.pact.model.Interaction)1 Description (org.junit.runner.Description)1 Failure (org.junit.runner.notification.Failure)1