verifyNull()

Purpose

Checks that an object is not null.

Syntax

verifyNull( [<string>,] <object> )

where:

Description

The corresponding test result is Passed if <object> is 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 verifyNull() method, an error is logged and the test continues.

Example

Object one_obj = null;

verifyNull("verify null passed", one_obj);

 

Related Topics

assertNotNull()verifyNotNull() | assertNull()