This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception caught handling request: | |
java.lang.IllegalArgumentException: Text must not be null | |
at groovy.json.JsonSlurper.parseText(JsonSlurper.java:203) | |
at au.com.dius.pact.model.JsonUtils$.parseJsonString(JsonUtils.scala:15) | |
at au.com.dius.pact.matchers.JsonBodyMatcher.matchBody(JsonBodyMatcher.scala:13) | |
at au.com.dius.pact.model.Matching$.matchBody(Matching.scala:167) | |
at au.com.dius.pact.model.RequestMatching$.requestMismatches(RequestMatching.scala:54) | |
at au.com.dius.pact.model.RequestMatching$.compareRequest(RequestMatching.scala:42) | |
at au.com.dius.pact.model.RequestMatching.au$com$dius$pact$model$RequestMatching$$compareToActual$1(RequestMatching.scala:11) | |
at au.com.dius.pact.model.RequestMatching$$anonfun$1.apply(RequestMatching.scala:12) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import au.com.dius.pact.consumer.Pact; | |
import au.com.dius.pact.consumer.PactProviderRule; | |
import au.com.dius.pact.consumer.PactVerification; | |
import au.com.dius.pact.consumer.dsl.PactDslWithProvider; | |
import au.com.dius.pact.model.PactFragment; | |
import com.jayway.restassured.RestAssured; | |
import com.jayway.restassured.http.ContentType; | |
import org.hamcrest.Matchers; | |
import org.json.JSONObject; | |
import org.junit.Rule; |