IO test cleanup
This commit is contained in:
		
							parent
							
								
									4a0dd47f36
								
							
						
					
					
						commit
						ab113fea22
					
				| @ -129,9 +129,9 @@ public class GuavaIOTest { | |||||||
| 
 | 
 | ||||||
|         final FileReader reader = new FileReader("src/test/resources/test1.in"); |         final FileReader reader = new FileReader("src/test/resources/test1.in"); | ||||||
|         final String result = CharStreams.toString(reader); |         final String result = CharStreams.toString(reader); | ||||||
|         reader.close(); |  | ||||||
| 
 | 
 | ||||||
|         assertEquals(expectedValue, result); |         assertEquals(expectedValue, result); | ||||||
|  |         reader.close(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Test |     @Test | ||||||
| @ -164,9 +164,9 @@ public class GuavaIOTest { | |||||||
| 
 | 
 | ||||||
|         final FileInputStream reader = new FileInputStream("src/test/resources/test1.in"); |         final FileInputStream reader = new FileInputStream("src/test/resources/test1.in"); | ||||||
|         final byte[] result = ByteStreams.toByteArray(reader); |         final byte[] result = ByteStreams.toByteArray(reader); | ||||||
|         reader.close(); |  | ||||||
| 
 | 
 | ||||||
|         assertEquals(expectedValue, new String(result)); |         assertEquals(expectedValue, new String(result)); | ||||||
|  |         reader.close(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Test |     @Test | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user