VerificationSettings

pact4s.provider.VerificationSettings
See theVerificationSettings companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class AnnotatedMethodVerificationSettings(packagesToScan: List[String]) extends VerificationSettings

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
 }

Value parameters

packagesToScan

which packages to scan, e.g. "pact4s.messages"

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror