assert

assert(message: String);

The assert method of the JadeTestCase class is invoked by a user test method if the method fails. It can be invoked directly by the user test method, or indirectly by one of the specific assert methods in the JadeTestCase class (for example, the assertEquals method).

A message describing the failure is passed to the method as the value of the message parameter.

A failure in the test method results in the testFailure method being executed by an object implementing the JadeTestListenerIF interface. For details, see "Using the JADE Testing Framework", in Chapter 17 of the JADE Developer’s Reference.