Re: git commit: workwaround to fix unit tests as Hamcrest's IsCollectionContaining seems buggy

2014-08-28 Thread Jean-Louis Boudart
Thanks for the feedback Stefan :) 2014-08-28 17:40 GMT+02:00 Stefan Bodewig : > On 2014-08-28, Stefan Bodewig wrote: > > > On 2014-08-28, wrote: > > >> workwaround to fix unit tests as Hamcrest's IsCollectionContaining > seems buggy > > > actually, it is Hamcrest's isA matcher that is borked, s

Re: git commit: workwaround to fix unit tests as Hamcrest's IsCollectionContaining seems buggy

2014-08-28 Thread Stefan Bodewig
On 2014-08-28, Stefan Bodewig wrote: > On 2014-08-28, wrote: >> workwaround to fix unit tests as Hamcrest's IsCollectionContaining seems >> buggy > actually, it is Hamcrest's isA matcher that is borked, stumbled over it > myself a few times. and you can use new org.hamcrest.core.IsInstanceOf

Re: git commit: workwaround to fix unit tests as Hamcrest's IsCollectionContaining seems buggy

2014-08-28 Thread Stefan Bodewig
On 2014-08-28, wrote: > workwaround to fix unit tests as Hamcrest's IsCollectionContaining seems buggy actually, it is Hamcrest's isA matcher that is borked, stumbled over it myself a few times. > -assertThat(project.getBuildListeners(), > hasItem(isA(MultiModuleLogger.class))); here