Tom White’s Blog: Literate Programming with jMock: ” Posted by tomwhite on May 11, 2006 at 11:10 AM We’ve been using jMock at our company for some time now. We’ve found it great for test driven development and isolating our unit tests from the rest of the
When you read his examples the “eq” seems very hacky and bends the literate approach out of shape a bit.
Why not add an extra method named something resembling “islike” as a synonym for the horrible eq, then you can say:
assertThat(a, islike(“3″));
or
assertThat( theEndResult, islike( theDesiredExample ));
More literate, hmm?
Tom White’s Blog: Literate Programming with jMock
Tom White’s Blog: Literate Programming with jMock: ” Posted by tomwhite on May 11, 2006 at 11:10 AM We’ve been using jMock at our company for some time now. We’ve found it great for test driven development and isolating our unit tests from the rest of the