Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
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 :
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