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
%dw 2.0
import dw::tests::Asserts
---
payload must beObject()
Validates if a payload is of type Object
Validates that the given value is equal to the content of a resource file
The resource file must belong to the classpath
%dw 2.0
import dw::tests::Asserts
---
{ name: "Lionel", lastName: "Messi" } must equalToResource("user.json", "application/json")