diff --git a/provider/junit/src/main/kotlin/au/com/dius/pact/provider/junit/InteractionRunner.kt b/provider/junit/src/main/kotlin/au/com/dius/pact/provider/junit/InteractionRunner.kt index a501dc50a7..3ee205c055 100644 --- a/provider/junit/src/main/kotlin/au/com/dius/pact/provider/junit/InteractionRunner.kt +++ b/provider/junit/src/main/kotlin/au/com/dius/pact/provider/junit/InteractionRunner.kt @@ -261,7 +261,9 @@ open class InteractionRunner( val methods = findStateChangeMethod(state, testTarget.getStateHandlers()) if (methods.isEmpty()) { return Fail(MissingStateChangeMethod("MissingStateChangeMethod: Did not find a test class method annotated " + - "with @State(\"${state.name}\")")) + "with @State(\"${state.name}\") " + + "for Interaction (\"${interaction.description}\") " + + "and Consumer ${pact.consumer.name}")) } else { stateChange = RunStateChanges(stateChange, methods, listOf(Supplier { target }) + testTarget.getStateHandlers().map { it.right }, state, testContext, testTarget.verifier)