Package org.alfresco.rest.core.assertion
Class ModelAssertion.AssertionVerbs
java.lang.Object
org.alfresco.rest.core.assertion.ModelAssertion.AssertionVerbs
- Enclosing class:
- ModelAssertion<T>
DSL assertion on Rest Model fields
- Author:
- Paul Brodner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontainsOnce(String value) booleanisEmpty()Check if the supplied field is an empty String, Collection or Map.isGreaterThan(Integer value) Assert if predicate value is greater than the field valueisLessThan(Integer value) Assert if predicate value is less than the field valueCheck if the supplied field is a non-empty String, Collection or Map.isNull()notContains(String value)
-
Constructor Details
-
AssertionVerbs
-
-
Method Details
-
isNot
-
equals
-
is
-
isNotEmpty
Check if the supplied field is a non-empty String, Collection or Map.- Throws:
AssertionError- if the field is empty.UnsupportedOperationException- if the field cannot be checked for emptiness.
-
isNotNull
-
isNull
-
isEmpty
Check if the supplied field is an empty String, Collection or Map.- Throws:
AssertionError- if the field is not empty.UnsupportedOperationException- if the field cannot be checked for emptiness.
-
contains
-
containsOnce
-
notContains
-
isGreaterThan
public T isGreaterThan(Integer value) throws org.alfresco.utility.exception.TestConfigurationException Assert if predicate value is greater than the field value- Parameters:
value- the predicate- Returns:
- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
isLessThan
Assert if predicate value is less than the field value- Parameters:
value- the predicate- Returns:
- Throws:
org.alfresco.utility.exception.TestConfigurationException
-