pact-foundation / pact-jvm

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://docs.pact.io
Apache License 2.0
1.08k stars 479 forks source link

pact-jvm-provider-junit5-spring MockMvcTestTarget #1072

Closed BramVanImpe closed 4 years ago

BramVanImpe commented 4 years ago

Hi,

first of all, excuse me if this is not the right place to ask a question. I'll be happy to post it somewhere else if needed.

The documentation of the "pact-jvm-provider-junit5-spring" mentions that you can use the "MockMvcTestTarget" class in orde to verify contracts against a MockMvc environment.

This class doesn't seem to be included in the dependency however. Can you point me in the right direction?

Thanks a lot!

Best regards

uglyog commented 4 years ago

This hasn't been released yet, it will be in version 4.0.10 which should be out soon.

BramVanImpe commented 4 years ago

Thanks, I'll use the Junit4 set-up until then.

straurob commented 4 years ago

Is there any update on this? I'm using the following dependency but it seems as if MockMvcTestTarget is still not available?

    <dependency>
        <groupId>au.com.dius.pact.provider</groupId>
        <artifactId>junit5</artifactId>
        <version>4.1.7</version>
    </dependency>
uglyog commented 4 years ago

@straurob all the spring classes are in au.com.dius.pact.provider:spring

uglyog commented 4 years ago

And au.com.dius.pact.provider:junit5spring for JUnit5 support.

straurob commented 4 years ago

Thanks a lot. It's working fine now :slightly_smiling_face: