Skip to content

Commit ab113fe

Browse files
author
eugenp
committed
IO test cleanup
1 parent 4a0dd47 commit ab113fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎guava/src/test/java/org/baeldung/guava/GuavaIOTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ public void whenReadUsingCharStream_thenRead() throws IOException {
129129

130130
final FileReader reader = new FileReader("src/test/resources/test1.in");
131131
final String result = CharStreams.toString(reader);
132-
reader.close();
133132

134133
assertEquals(expectedValue, result);
134+
reader.close();
135135
}
136136

137137
@Test
@@ -164,9 +164,9 @@ public void whenReadUsingByteStream_thenRead() throws IOException {
164164

165165
final FileInputStream reader = new FileInputStream("src/test/resources/test1.in");
166166
final byte[] result = ByteStreams.toByteArray(reader);
167-
reader.close();
168167

169168
assertEquals(expectedValue, new String(result));
169+
reader.close();
170170
}
171171

172172
@Test

0 commit comments

Comments
 (0)