Getting started Community Training Tutorials Documentation APIs, AI & Tools
%dw 2.0
import dw::tests::Asserts
---
payload must beObject()
This module contains the set of core matchers to use in your tests.
Validates that the asserted Comparable value is greater than the given one.
The value can be equal when using the inclusive argument.
| Name | Description |
|---|---|
|
The number to compare to. |
|
Specifies if the comparison is inclusive or not (Optional). False by default. |
Validates that the asserted Comparable value is less than the given value.
The value can be equal when using the inclusive argument.
| Name | Description |
|---|---|
|
The number to compare to. |
|
Specifies if the comparison is inclusive or not (Optional). False by default. |
Validates that the asserted string contains the given string.
Validates that the given value is equal to the content of a resource file.
The resource file must belong to the classpath.
This function enables you to assert a value with with a list of matchers or expressions.