André Cruz
07/04/2022, 3:06 PM@PactVerifyProvider
which then returns an instance of the protobuf message that I want to test against the one in the pact (generated by the consumer). Is that possible or even a correct approach?
- My provider sets the target to a MessageTestTarget like so
@BeforeEach
void before(PactVerificationContext context) {
context.setTarget(new MessageTestTarget());
}
Is that the right way to do it? Or should I used the PluginTestTarget instead? When I tried to use it, I got an exception about not providing a transport (which, as far as I could understand, can only be gRPC, which I am not using).