Class ModelsCollectionAssertion<C>

java.lang.Object
org.alfresco.rest.core.assertion.ModelsCollectionAssertion<C>

public class ModelsCollectionAssertion<C> extends Object
Assertion on Rest Model Collection Just pass your rest model collection as constructor
Author:
Paul Brodner
  • Constructor Details

  • Method Details

    • entriesListIsNotEmpty

      public C entriesListIsNotEmpty()
      check if "entries" list from JSON is not empty
    • entriesListIsEmpty

      public C entriesListIsEmpty()
      check if "entries" list from JSON is empty
    • entriesListCountIs

      public C entriesListCountIs(int expectedCount)
    • entriesListContains

      public C entriesListContains(String key, String value)
    • entriesListDoesNotContain

      public C entriesListDoesNotContain(String key, String value)
    • entrySetContains

      public C entrySetContains(String key, String... expectedValues)
    • entrySetContains

      public C entrySetContains(String key, Collection<String> expectedValues)
    • entrySetMatches

      public C entrySetMatches(String key, Collection<String> expectedValues)
    • entriesListDoesNotContain

      public C entriesListDoesNotContain(String key)
    • entriesListContains

      public C entriesListContains(String key)
    • paginationExist

      public C paginationExist()
    • paginationField

      public PaginationAssertionVerbs paginationField(String field)
      Check one field from pagination json body
      Parameters:
      field -
      Returns:
    • entriesListIsSortedAscBy

      public C entriesListIsSortedAscBy(String field)
      check is the entries are ordered ASC by a specific field
      Parameters:
      field - from json response
      Returns:
    • entriesListIsSortedDescBy

      public C entriesListIsSortedDescBy(String field)
      check is the entries are ordered DESC by a specific field
      Parameters:
      field - from json response
      Returns: