emptyiterable ex
This commit is contained in:
		
							parent
							
								
									1e1142b145
								
							
						
					
					
						commit
						b2e489ca64
					
				| @ -12,6 +12,7 @@ import static org.hamcrest.Matchers.hasItems; | ||||
| import static org.hamcrest.Matchers.hasSize; | ||||
| import static org.hamcrest.Matchers.not; | ||||
| import static org.junit.Assert.assertThat; | ||||
| import static org.hamcrest.Matchers.emptyIterable; | ||||
| 
 | ||||
| import java.util.Collections; | ||||
| import java.util.List; | ||||
| @ -56,6 +57,7 @@ public class HamcrestExamplesUnitTest { | ||||
|     public final void givenCollectionIsEmpty_whenChecking_thenEmpty() { | ||||
|         final List<String> collection = Lists.newArrayList(); | ||||
|         assertThat(collection, empty()); | ||||
|         assertThat(collection, emptyIterable()); | ||||
|     } | ||||
| 
 | ||||
|     @Test | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user