-
public class JSONUtils
-
-
Method Summary
Modifier and Type Method Description static booleanjsonObjectContainsValuesFrom(@Nullable() JSONObject expected, @Nullable() JSONObject actual)Helper method that checks whether values from a JSONObject are contained into an other. static booleanjsonArrayContainsValuesFrom(@Nullable() JSONArray expected, @Nullable() JSONArray actual)Helper method that checks whether values from a JSONArray are contained into an other. -
-
Method Detail
-
jsonObjectContainsValuesFrom
static boolean jsonObjectContainsValuesFrom(@Nullable() JSONObject expected, @Nullable() JSONObject actual)
Helper method that checks whether values from a JSONObject are contained into an other.
This method is NOT an equals method !
- Parameters:
expected- The expected json object for comparisonactual- The actual json object to check
-
jsonArrayContainsValuesFrom
static boolean jsonArrayContainsValuesFrom(@Nullable() JSONArray expected, @Nullable() JSONArray actual)
Helper method that checks whether values from a JSONArray are contained into an other.
This method is NOT an equals method !
- Parameters:
expected- The expected json array for comparisonactual- The actual json array to check
-
-
-
-