From: aclement Date: Thu, 3 Sep 2009 23:02:16 +0000 (+0000) Subject: close streams X-Git-Tag: PRE_J5~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=853ecde20640984a19aae66c1955509428c178fc;p=aspectj.git close streams --- diff --git a/util/testsrc/org/aspectj/util/FileUtilTest.java b/util/testsrc/org/aspectj/util/FileUtilTest.java index d3ae6b502..f767cb5a3 100644 --- a/util/testsrc/org/aspectj/util/FileUtilTest.java +++ b/util/testsrc/org/aspectj/util/FileUtilTest.java @@ -617,7 +617,7 @@ public class FileUtilTest extends TestCase { void checkPipe(String data) { StringBufferInputStream in = new StringBufferInputStream(data); ByteArrayOutputStream out = new ByteArrayOutputStream(); - FileUtil.Pipe pipe = new FileUtil.Pipe(in, out); + FileUtil.Pipe pipe = new FileUtil.Pipe(in, out, 100l, true, true); pipe.run(); assertTrue(data.equals(out.toString())); assertTrue(null == pipe.getThrown()); @@ -634,7 +634,7 @@ public class FileUtilTest extends TestCase { } }; - FileUtil.Pipe pipe = new FileUtil.Pipe(in, out); + FileUtil.Pipe pipe = new FileUtil.Pipe(in, out, 100l, true, true); pipe.run(); assertEquals("totalWritten", 0, pipe.totalWritten()); assertTrue(thrown == pipe.getThrown()); @@ -676,7 +676,7 @@ public class FileUtilTest extends TestCase { boolean set; } final Result result = new Result(); - FileUtil.Pipe pipe = new FileUtil.Pipe(in, out) { + FileUtil.Pipe pipe = new FileUtil.Pipe(in, out, 100l, true, true) { protected void completing( long totalWritten, Throwable thrown) {