All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.com.dius.pact.consumer.Pact.kt Maven / Gradle / Ivy

package au.com.dius.pact.consumer

/**
 * describes the interactions between a provider and a consumer used in JUnit tests.
 * The annotated method has to be of following signature:
 *
 * public RequestResponsePact providerDef1(PactDslWithProvider builder) {...}
 *
 * @author pmucha
 */
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
annotation class Pact(
  /**
   * name of the provider
   */
  val provider: String = "",

  /**
   * name of the consumer
   */
  val consumer: String,

  /**
   * name of the state, the provider has to be in
   */
  @Deprecated("Provider state should be defined on the interactions")
  val state: String = ""
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy