News from May 07, 2009

  2009/05/07
Self documenting code
Last changed: May 07, 2009 22:31 by Ürgo Ringo
Labels: hamcrest, junit, javadocs

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

Posted at 07 May @ 9:30 PM by Ürgo Ringo | 0 Comments