| Issue 20: | Build assertThat( ... ) ala Hamcrest | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Nice to have!
assertThat(something, eq("Hello"));
assertThat(something, eq(true));
assertThat(something, isA(Color.class));
assertThat(something, contains("World"));
assertThat(something, same(Food.CHEESE));
assertThat(something, NULL);
assertThat(something, NOT_NULL);
Maybe implement assumptions and theories
@see
http://junit.sourceforge.net/doc/ReleaseNotes4.4.html
http://joe.truemesh.com/blog/000511.html
Hamcrest: https://code.google.com/p/hamcrest/wiki/Tutorial
Oct 26, 2007
Project Member
#1
virtix
Cc:
-v.rajkumar -AnodynePres
Dec 14, 2007
Just playing around with it and it looks feasible. Was able to proove that something
like this is possible w/CF assertThat("this string", isEqualTo("this string") ).
Thinking about the concept of "Descriptive Testing" ... expressive unit testing that
serves also as a design intent artifact. Sounds heretical coming from a uml weanie ;-)
Jan 24, 2008
Deferring this ...
Labels:
-Priority-Medium Priority-Low
Jun 30, 2010
(No comment was entered for this change.)
Status:
WontFix
|