pactpact-jvm

How to implement a simple PACT-JVM solution on existing Scala code-base


We are trying to implement a Hybrid approach for PACT-provider for Scala. We're looking for a simple example of Pact-JVM-provider side implementation using PACT-JVM (Java variant) We've the project code-base in Scala, but would like to try Pact JVM (Java variant) on top of it for Pact testing (Provider-side). I tried searching the sample for this hybrid approach but couldn't find one, so asking around for help.

Does anyone has a sample git repo of simple implementation?

Thanks a lot


Solution

  • I was not able to find exact matching solution, fulfilling the requirement of Scala code base & PACT tests written in JAVA. Whereas, below referred two solutions goes somewhat closer, to what we're looking for:

    1. https://github.com/pact-foundation/pact-jvm/tree/master/provider/specs2

    2. https://github.com/pact-foundation/pact-jvm/tree/master/provider/scalatest

    enter image description here enter image description here enter image description here enter image description here