From ab113fea22ab6a68c564662fb08cd58bdd6fa4fa Mon Sep 17 00:00:00 2001 From: eugenp Date: Sun, 26 Oct 2014 21:47:14 +0200 Subject: [PATCH] IO test cleanup --- guava/src/test/java/org/baeldung/guava/GuavaIOTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guava/src/test/java/org/baeldung/guava/GuavaIOTest.java b/guava/src/test/java/org/baeldung/guava/GuavaIOTest.java index efc5c03d47..47fee206dc 100644 --- a/guava/src/test/java/org/baeldung/guava/GuavaIOTest.java +++ b/guava/src/test/java/org/baeldung/guava/GuavaIOTest.java @@ -129,9 +129,9 @@ public class GuavaIOTest { final FileReader reader = new FileReader("src/test/resources/test1.in"); final String result = CharStreams.toString(reader); - reader.close(); assertEquals(expectedValue, result); + reader.close(); } @Test @@ -164,9 +164,9 @@ public class GuavaIOTest { final FileInputStream reader = new FileInputStream("src/test/resources/test1.in"); final byte[] result = ByteStreams.toByteArray(reader); - reader.close(); assertEquals(expectedValue, new String(result)); + reader.close(); } @Test