Skip to content

pactflow/example-consumer-java-graphql

 
 

Repository files navigation

Example Java GraphQL Consumer

Build

Can I deploy Status

Pact Status (latest pact)

This is an example of a Java GraphQL consumer that uses Pact with Junit, Pactflow and GitHub Actions to ensure that it is compatible with the expectations its consumers have of it.

The project uses a Makefile to simulate a very simple build pipeline with two stages - test and deploy.

It is using a public tenant on Pactflow, which you can access here using the credentials dXfltyFMgNOFZAxr8io9wJ37iUpY42M/O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1.

See also the full Pactflow CI/CD Workshop for which this can be substituted in as the "consumer".

Pre-requisites

Software:

Dependencies

  • Docker
  • A PactFlow account
  • A read/write API Token from your PactFlow account
  • Java 19+ installed
  • A linux based environment (e.g. MacOSX, Linux, Windows Subsystem for Linux)

Usage

make test

About

Example Java GraphQL consumer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 59.6%
  • Makefile 40.4%