AssertThat

"Tom Marsh" <[email protected]> Sun, 27 May 2007 20:54:32 +0100
Newsgroups gmane.comp.java.junit.devel
Message-ID <[email protected]>
Hi!

I recently had the pleasure of migrating a lot of the unit tests at work
from JMock 1.x to EasyMock 2.x. The only glitch we had was the loss of
assertThat, which is beloved by our Tech Leads and architects alike,
predominantly because of its excellent error reporting. We initially created
a wrapper for JMock's MockSupport classes but thats just ugly, so I patched
JUnit 4.4 to include an AssertThat class to complement Assert. It is
essentially a comprehensive wrapper of Google's Hamcrest library that allows
sensible assertions on collections. We kinda like it and would like to offer
it back to the community.

Is it something that you like to consider integrating with JUnit? If so how
can I submit?

Many Thanks

Tom

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
Junit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/junit-devel