Skip to content

Commit

Permalink
chore: Correct Javadoc for @Pact annotation #1739
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Dec 18, 2023
1 parent 2a641c4 commit fe8e0cc
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ package au.com.dius.pact.core.model.annotations

/**
* describes the interactions between a provider and a consumer used in JUnit tests.
* The annotated method has to be of following signature:
* The annotated method has to be one of following signatures:
*
* For legacy DSL classes and request/response interactions:
* public RequestResponsePact providerDef1(PactDslWithProvider builder) {...}
*
* For message interactions:
* public MessagePact providerDef1(MessagePactBuilder builder)
*
* For V4 DSL classes and any interaction type:
* public V4Pact providerDef1(PactBuilder builder) {...}
*
* @author pmucha
*/
@Retention(AnnotationRetention.RUNTIME)
Expand Down

0 comments on commit fe8e0cc

Please sign in to comment.