Package org.alfresco.rest.core.assertion
Class ModelsCollectionAssertion<C>
java.lang.Object
org.alfresco.rest.core.assertion.ModelsCollectionAssertion<C>
Assertion on Rest Model Collection Just pass your rest model collection as constructor
- Author:
- Paul Brodner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentriesListContains(String key, String value) entriesListCountIs(int expectedCount) entriesListDoesNotContain(String key, String value) check if "entries" list from JSON is emptycheck if "entries" list from JSON is not emptyentriesListIsSortedAscBy(String field) check is the entries are ordered ASC by a specific fieldentriesListIsSortedDescBy(String field) check is the entries are ordered DESC by a specific fieldentrySetContains(String key, String... expectedValues) entrySetContains(String key, Collection<String> expectedValues) entrySetMatches(String key, Collection<String> expectedValues) paginationField(String field) Check one field from pagination json body
-
Constructor Details
-
ModelsCollectionAssertion
-
-
Method Details
-
entriesListIsNotEmpty
check if "entries" list from JSON is not empty -
entriesListIsEmpty
check if "entries" list from JSON is empty -
entriesListCountIs
-
entriesListContains
-
entriesListDoesNotContain
-
entrySetContains
-
entrySetContains
-
entrySetMatches
-
entriesListDoesNotContain
-
entriesListContains
-
paginationExist
-
paginationField
Check one field from pagination json body- Parameters:
field-- Returns:
-
entriesListIsSortedAscBy
check is the entries are ordered ASC by a specific field- Parameters:
field- from json response- Returns:
-
entriesListIsSortedDescBy
check is the entries are ordered DESC by a specific field- Parameters:
field- from json response- Returns:
-