Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: FEST-Assert 1.1
-
Fix Version/s: FEST-Assert 1.2
-
Component/s: Assert
-
Labels:None
-
Number of attachments :
Description
If JUnit is present, FEST-Assert creates a ComparisonFailure instead of an AssertionError. In this case, the error message is formatted as follows:
A Test expected:<[Yoda]> but was:<[Luke]>
but it is expected to be:
[A Test] expected:<'Yoda'> but was:<'Luke'>
I just found out that ComparisonFailure adds brackets to the expected and actual values to indicate the differences between these two values.