Package au.com.dius.pact.provider
Class ResponseComparison
-
- All Implemented Interfaces:
public final class ResponseComparisonUtility class to compare responses
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classResponseComparison.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static ResponseComparison.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StatusMismatchstatusResult(List<Mismatch> mismatches)final Map<String, List<HeaderMismatch>>headerResult(List<Mismatch> mismatches)final Result<BodyComparisonResult, BodyTypeMismatch>bodyResult(List<Mismatch> mismatches, ValueResolver resolver)final static Result<Boolean, String>shouldGenerateDiff(ValueResolver resolver, Integer length)final static List<BodyMismatch>compareMessageBody(Interaction message, OptionalBody actual, MatchingContext context)-
-
Method Detail
-
statusResult
final StatusMismatch statusResult(List<Mismatch> mismatches)
-
headerResult
final Map<String, List<HeaderMismatch>> headerResult(List<Mismatch> mismatches)
-
bodyResult
final Result<BodyComparisonResult, BodyTypeMismatch> bodyResult(List<Mismatch> mismatches, ValueResolver resolver)
-
shouldGenerateDiff
final static Result<Boolean, String> shouldGenerateDiff(ValueResolver resolver, Integer length)
-
compareMessageBody
final static List<BodyMismatch> compareMessageBody(Interaction message, OptionalBody actual, MatchingContext context)
-
-
-
-