FEST

Improve error messages related to unexpected null values.

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: FEST-Assert 1.2
  • Fix Version/s: FEST-Assert 1.3
  • Component/s: Assert
  • Labels:
    None
  • Number of attachments :
    0

Description

Error messages related to unexpected null values can be confusing. For example:

String actual = null;
assertThat(actual).contains("hello");

will throw an error with the following message:

expecting a non-null object, but it was null

Instead, the error message could be:

expecting actual value not be null

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: