verifyNotNull()
Purpose
Checks that an object is not null.
Syntax
verifyNotNull( [<string>,]<object> )
where:
<string> is an optional message
<object> is a Java object
Description
The corresponding test result is Passed if <object> is not null, and Failed if the condition is False.
An optional <string> message can be logged and displayed in the test report.
If an exception is thrown in a verifyNotNull() method, an error is logged and the test continues.
Example
Object one_obj = null;
verifyNotNull("verify not null failed", one_obj);
Related Topics