Self documenting code

Hamcrest library that provides Matchers used in Junit assertThat feature has interesting technique for documentation.
If you try to create new custom matcher by implementing Matcher interface you will also need to implement this method:

void dont_implement_Matcher_instead_extend_BaseMatcher()

Seems to be more effective than Javadocs

Labels

hamcrest hamcrest Delete
junit junit Delete
javadocs javadocs Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.