Class JsonAssert
java.lang.Object
org.springframework.test.json.JsonAssert
Deprecated, for removal: This API element is subject to removal in a future version.
Useful methods that can be used with
org.skyscreamer.jsonassert.- Since:
- 6.2
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonComparatorcomparator(org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Deprecated, for removal: This API element is subject to removal in a future version.Create a newJsonComparatorfrom the given JSONAssertJSONComparator.static JsonComparatorcomparator(org.skyscreamer.jsonassert.JSONCompareMode mode) Deprecated, for removal: This API element is subject to removal in a future version.Create a newJsonComparatorfrom the given JSONAssertJSONCompareMode.static JsonComparatorcomparator(JsonCompareMode compareMode) Deprecated, for removal: This API element is subject to removal in a future version.Create aJsonComparatorfrom the givenJsonCompareMode.
-
Constructor Details
-
JsonAssert
public JsonAssert()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
comparator
Deprecated, for removal: This API element is subject to removal in a future version.Create aJsonComparatorfrom the givenJsonCompareMode.- Parameters:
compareMode- the mode to use- Returns:
- a new
JsonComparatorinstance - See Also:
-
comparator
public static JsonComparator comparator(org.skyscreamer.jsonassert.comparator.JSONComparator comparator) Deprecated, for removal: This API element is subject to removal in a future version.Create a newJsonComparatorfrom the given JSONAssertJSONComparator.- Parameters:
comparator- the JSON AssertJSONComparator- Returns:
- a new
JsonComparatorinstance
-
comparator
Deprecated, for removal: This API element is subject to removal in a future version.Create a newJsonComparatorfrom the given JSONAssertJSONCompareMode.- Parameters:
mode- the JSON AssertJSONCompareMode- Returns:
- a new
JsonComparatorinstance
-
JsonComparator.of(JsonCompareMode), which supports both JsonUnit and JSONassert, or a customJsonComparatorimplementation