Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
BramVanImpe opened this issue Apr 17, 2020 · 7 comments
Closed

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

BramVanImpe opened this issue Apr 17, 2020 · 7 comments

Comments

@BramVanImpe
Copy link

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
Copy link
Member

uglyog commented Apr 18, 2020

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

@BramVanImpe
Copy link
Author

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

@straurob
Copy link

straurob commented Sep 2, 2020

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
Copy link
Member

uglyog commented Sep 2, 2020

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

@uglyog
Copy link
Member

uglyog commented Sep 2, 2020

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

@straurob
Copy link

straurob commented Sep 3, 2020

Thanks a lot. It's working fine now 🙂

mf81bln added a commit to mf81bln/pact-jvm that referenced this issue Dec 9, 2020
I was wondering about missing dependencies for `MockMvcTestTarget`. Found it in an issue (pact-foundation#1072 (comment)) but not in the docs
@hairinwind
Copy link

It is now 2024. I am still looking for the answer. Thanks for this post.
I just don't understand why the package information is not put in the web page. https://docs.pact.io/implementation_guides/jvm/provider/junit5spring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants