Reputation:
How do I assert my HTTP Status Code in MUnit Version 2.2.1 for Mule 4?
I have checked all the vars and attributes being returned and none of them have the HTTP Status Code.
Upvotes: 1
Views: 2597
Reputation: 66
It should be present in the attributes
<munit-tools:assert-that expression="#[attributes.statusCode]" is="#[MunitTools::equalTo(400)]"/>
Upvotes: 1