Changes between Version 40 and Version 41 of ProgrammingGuidelines


Ignore:
Timestamp:
07/12/11 16:33:51 (8 years ago)
Author:
welberge
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProgrammingGuidelines

    v40 v41  
    172172=== Custom assertions using hamcrest === 
    173173[[http://code.google.com/p/hamcrest/|hamcrest]] is a utility library providing custom assertions with good human-readable error messages. Some examples (added here, because the documentation coming with hamcrest sucks). 
    174 Assert that there are 3 items in someList, prints the content of the list if 
    175 this is not the case: 
     174 
     175 
     176Assert that there are 3 items in someList, prints the content of the list if this is not the case: 
    176177{{{ 
    177178import static org.hamcrest.MatcherAssert.assertThat;