Search |
||
HamcrestPosted by tomwhite on December 22, 2006 at 12:27 PM PST
In Literate Programming with jMock I enthused about jMock's idea of constraints and flexible assertions. Now the jMock team has released version 1.0 of Hamcrest, the constraints part of jMock. Hamcrest matchers (what were called constraints in jMock) are actually useful for more than just writing unit tests, but it is their application in writing assertions where they really shine and will probably see most use. So now I can write
or even
rather than JUnit's
Apart from being more readable,
And since the matchers (and the So why not read the tutorial and give Hamcrest a go? »
Related Topics >>
Testing Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|