Version 3.17.2

APIs

  • Begin typing in the search box above to see results.
Show:

Test.ComparisonFailure Class

Extends AssertionError
Module: test

ComparisonFailure is subclass of Error that is thrown whenever a comparison between two values fails. It provides mechanisms to retrieve both the expected and actual value.

Item Index

Methods

Properties

Methods

getMessage

() String

Returns a fully formatted error for an assertion failure. This message provides information about the expected and actual values.

Returns:

String :

A string describing the error.

Properties

actual

Object

The actual value.

expected

Object

The expected value.

name

String

The name of the error that occurred.

AltStyle によって変換されたページ (->オリジナル) /