remondis-it / pact-consumer-builder

Library for generating pact consumer expectations from java beans
Apache License 2.0
14 stars 6 forks source link

Support for top-level collections. #11

Closed schuettec closed 4 years ago

schuettec commented 4 years ago

Now it's possible to create top-level collections in the Pact via

ConsumerExpects.collectionOf(<LIST_ELEMENT_TYPE_HERE>)
        .useArraySupplier(supplier) // Optionally, customize the PactDslJsonArray structure
        .build(<LIST_ELEMENT_SAMPLE_HERE>);