Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
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
Hello,
1. I had to do it myself so I think it might be useful for others:
assertThat(someString).containsIgnoringCase("foo");
2. You might also consider adding .equalsIgnoringCase(other) because java5 already has such method on String. However, I didn't need such assertion yet.
3. There's an option to do it fluently: assertThat(someStr).ignoringCase().contains("foo"), however I think I like simple option #1 more.
Attachments
Issue Links
| This issue is related to: | ||||
| FEST-64 | Assertions should be allowed to compare objects using a custom comparator instead of equals() |
|
|
|
Hi Alex and Yvonne,
Alex, I sent you a patch for this issue, maybe it's not necessary that Yvonne works on that.
The patch I sent you is attached to the issue.
Yvonne can review it and tell it it's ok ?
Cheers,
Joel