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

Add pact-messaging example #38

Open
schustes opened this issue Oct 31, 2018 · 1 comment
Open

Add pact-messaging example #38

schustes opened this issue Oct 31, 2018 · 1 comment
Assignees

Comments

@schustes
Copy link

Hello there,

first of all, a great framework and an excellent list of examples.
I managed to convert a pact rest contract into a spring contract as given in the example.

I'm trying to do the same for a message contract. The contract gets downloaded but then an error is thrown when the test generation starts. My base test class is annotated with AutoConfigureMessageVerifier

The exception sounds as if it is attempted to convert a rest contract:
Caused by: java.lang.NullPointerException: Cannot get property 'serverValue' on null object at org.springframework.cloud.contract.verifier.builder.JUnitMessagingMethodBodyBuilder.validateResponseHeadersBlock(JUnitMessagingMethodBodyBuilder.groovy:138)
I'm certainly missing something here, but have no clue what. Any hints?

@OlgaMaciaszek
Copy link
Collaborator

There is no so far. Once this spring-cloud/spring-cloud-contract#796 gets fixed, a sample should be added as well.

@OlgaMaciaszek OlgaMaciaszek changed the title Is there an example for pact-messaging with spring-cloud-contract Add pact-messaging example Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants