Package org.alfresco.rest.core.assertion
Class ModelAssertion.AssertionVerbs
- java.lang.Object
-
- org.alfresco.rest.core.assertion.ModelAssertion.AssertionVerbs
-
- Enclosing class:
- ModelAssertion<T>
public class ModelAssertion.AssertionVerbs extends java.lang.ObjectDSL assertion on Rest Model fields- Author:
- Paul Brodner
-
-
Constructor Summary
Constructors Constructor Description AssertionVerbs(java.lang.Object model, java.lang.Object fieldValue, java.lang.String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcontains(java.lang.String value)booleanequals(java.lang.Object o)Tis(java.lang.Object expected)TisEmpty()Check if the supplied field is an empty String, Collection or Map.TisGreaterThan(java.lang.Integer value)Assert if predicate value is greater than the field valueTisLessThan(java.lang.Integer value)Assert if predicate value is less than the field valueTisNot(java.lang.Object expected)TisNotEmpty()Check if the supplied field is a non-empty String, Collection or Map.TisNotNull()TisNull()
-
-
-
Method Detail
-
isNot
public T isNot(java.lang.Object expected)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
is
public T is(java.lang.Object expected)
-
isNotEmpty
public T isNotEmpty()
Check if the supplied field is a non-empty String, Collection or Map.- Throws:
java.lang.AssertionError- if the field is empty.java.lang.UnsupportedOperationException- if the field cannot be checked for emptiness.
-
isNotNull
public T isNotNull()
-
isNull
public T isNull()
-
isEmpty
public T isEmpty()
Check if the supplied field is an empty String, Collection or Map.- Throws:
java.lang.AssertionError- if the field is not empty.java.lang.UnsupportedOperationException- if the field cannot be checked for emptiness.
-
contains
public T contains(java.lang.String value)
-
isGreaterThan
public T isGreaterThan(java.lang.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
public T isLessThan(java.lang.Integer value) throws org.alfresco.utility.exception.TestConfigurationException
Assert if predicate value is less than the field value- Parameters:
value- the predicate- Returns:
- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
-