Package 

Class JSONUtils

    • 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 comparison
        actual - 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 comparison
        actual - The actual json array to check