pact-jvm-provider-junit5-spring MockMvcTestTarget

Created on 17 Apr 2020  路  6Comments  路  Source: pact-foundation/pact-jvm

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

question

All 6 comments

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

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

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>

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

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

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

Was this page helpful?
0 / 5 - 0 ratings