For verifying message pacts, pact-jvm searches across the classpath for uniquely defined annotated methods that represent the message produced by the provider. For example:
For verifying message pacts, pact-jvm searches across the classpath for uniquely defined annotated methods that represent the message produced by the provider. For example:
@PactVerifyProvider("A message to say goodbye")
def goodbyeMessage(): MessageAndMetadata = {
val body = """{"goodbye":"harry"}"""
MessageAndMetadataBuilder(body).build
}