Package org.springframework.test.json
Class JsonComparison
java.lang.Object
org.springframework.test.json.JsonComparison
A comparison of two JSON strings as returned from a 
JsonComparator.- Since:
- 6.2
- Author:
- Phillip Webb
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionReturn a message describing the comparison.Return the result of the comparison.static JsonComparisonmatch()Factory method to create a newJsonComparisonwhen the JSON strings match.static JsonComparisonFactory method to create a newJsonComparisonwhen the JSON strings do not match.
- 
Method Details- 
matchFactory method to create a newJsonComparisonwhen the JSON strings match.- Returns:
- a new JsonComparisoninstance
 
- 
mismatchFactory method to create a newJsonComparisonwhen the JSON strings do not match.- Parameters:
- message- a message describing the mismatch
- Returns:
- a new JsonComparisoninstance
 
- 
getResultReturn the result of the comparison.
- 
getMessageReturn a message describing the comparison.
 
-