Writes an error to the log if expression evaluates to true. Returns String containing the error message written to the log.
Parameter | Type | Description |
---|---|---|
expression | Object | Expression that must evaluate to false. |
message | String | Custom message to use if the assertion fails. Message will be run through template evaluation against messageProperties so you can include details of the assertion failure in the message. |
messageProperties | Object | Object containing values to use with template evaluation. |
Example usage:
var details = this.detailsTable.get("5551212"); Mojo.assertFalse(details, "Details must not be found");
0 Comments