@@ -0,0 +1,3696 @@
+package pact;%0A%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0Aimport au.com.dius.pact.consumer.dsl.DslPart;%0Aimport au.com.dius.pact.consumer.dsl.PactDslJsonBody;%0Aimport au.com.dius.pact.consumer.dsl.PactDslWithProvider;%0Aimport au.com.dius.pact.model.PactFragment;%0Aimport au.com.dius.pact.consumer.ConsumerPactTest;%0Aimport java.util.*;%0Aimport au.com.dius.pact.consumer.PactProviderRule;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.hasKey;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.hamcrest.Matchers.nullValue;%0Aimport org.junit.Rule;%0Aimport org.junit.Assert;%0Aimport au.com.dius.pact.consumer.dsl.PactDslJsonArray;%0A%0A%0Apublic class PactDslArrayLikeTest extends ConsumerPactTest %7B%0A%0A    Logger logger = Logger.getLogger(PactDslArrayLikeTest.class.getName());%0A%0A    @Rule%0A    public PactProviderRule mockProvider = new PactProviderRule(%22test_provider%22, %22localhost%22, 1234, this);%0A%0A    String v3Path = %22/%22;%0A            DslPart body = new PactDslJsonBody()%0A                    .object(%22result%22)%0A                        .eachLike(%22packages%22)%0A                            .booleanType(%22Instore%22)%0A                            .booleanType(%22custom%22)%0A                            .stringType(%22description%22)%0A                            .id()%0A                            .stringType(%22name%22)%0A                            .stringType(%22shortName%22)%0A                            .stringType(%22uri%22)%0A                            .eachLike(%22parents%22)%0A                                .id()%0A                                .stringType(%22uri%22)%0A                                .closeObject()%0A                            .closeArray()%0A                            .eachLike(%22stats%22)%0A                                .integerType(%22avg%22)%0A                                .integerType(%22Comments%22)%0A                                .integerType(%22Impressions%22)%0A                                .integerType(%22Views%22)%0A                                .integerType(%22likes%22)%0A                                .integerType(%22sumLikes%22)%0A                                .integerType(%22sumViews%22)%0A                                .integerType(%22totalC%22)%0A                                .integerType(%22totalV%22)%0A                                .closeObject()%0A                            .closeArray()%0A                            .eachLike(%22omi%22)%0A                                .closeObject()%0A                            .closeArray()%0A                            .eachLike(%22children%22)%0A                            .closeObject()%0A                            .closeArray()%0A                            .closeObject()%0A                        .closeArray()%0A                    .closeObject();%0A    protected PactFragment createFragment(PactDslWithProvider builder) %7B%0A        Map%3CString, String%3E headers = new HashMap%3CString, String%3E();%0A        headers.put(%22Content-Type%22, %22application/json%22);%0A%0A        PactFragment fragment = builder%0A                .uponReceiving(%22API v3 endpoint response%22)%0A                .path(%22/%22)%0A                .method(%22GET%22)%0A                .willRespondWith()%0A                .status(200)%0A                .headers(headers)%0A                .body(body)%0A                .toFragment();%0A        return fragment;%0A    %7D%0A%0A    @Override%0A    protected String providerName() %7B%0A        return %22test_provider%22;%0A    %7D%0A%0A    @Override%0A    protected String consumerName() %7B%0A        return %22test_consumer%22;%0A    %7D%0A%0A    @Override%0A    protected void runTest(String url) %7B%0A        Map actualResponse;%0A        try %7B%0A            actualResponse = new ConsumerClient(url).getAsMap(%22/%22, %22%22);%0A        %7D%0A        catch (Exception e) %7B%0A            throw new RuntimeException(e);%0A        %7D%0A    %7D%0A%7D%0A

add arrayLike example