Package 

Class MessageTestTarget

  • All Implemented Interfaces:
    au.com.dius.pact.provider.junit5.TestTarget

    
    public class MessageTestTarget
     implements TestTarget
                        

    Test target for use with asynchronous providers (like with message queues) and synchronous request/response message flows (like gRPC or Kafka request/reply strategies).

    This target will look for methods with a @PactVerifyProvider annotation where the value is the description of the interaction. For asynchronous messages, these functions must take no parameter and return the message (or message + metadata), while for synchronous messages they can receive the request message then must return the response message (or message + metadata).