Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: FEST-Assert 1.3
-
Fix Version/s: FEST-Assert 2.0M1
-
Component/s: Assert
-
Labels:None
-
Number of attachments :
Description
Based on http://groups.google.com/group/easytesting/browse_thread/thread/3e74becf8f6f1460?hl=en.
Something like:
assertThat(variable).isEqualTo(a).or().isEqualTo(b);
or
assertThat(variable).is(or(isEqualTo(a), isEqualTo(b));
Just some more thoughts...
The second, hamcrest like approach, looks a like a bit more flexible, because it would be easy to add handy things like
etc...
But it would loose then the specific asserts, correct ?
Maybe something like
wouldn't be flexible to hell, but keep the ease of fest ?