Skip to content

Add pact-messaging example #38

Description

@schustes

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions