Changes between Version 65 and Version 66 of ProgrammingGuidelines


Ignore:
Timestamp:
07/03/14 14:03:09 (5 years ago)
Author:
welberge
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProgrammingGuidelines

    v65 v66  
    260260 
    261261Assert that someList has an item of class X. 
     262{{{ 
    262263import static org.hamcrest.CoreMatchers.instanceOf; 
    263264import static org.hamcrest.MatcherAssert.assertThat; 
    264265import static org.hamcrest.Matchers.hasItemInArray; 
    265266... 
    266 {{{ 
    267267assertThat(someList.toArray(), hasItemInArray(instanceOf(X.class)));         
    268268}}}