diff options
author | aclement <aclement> | 2009-09-03 23:02:16 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-09-03 23:02:16 +0000 |
commit | 853ecde20640984a19aae66c1955509428c178fc (patch) | |
tree | ffcc0dbd4d9a82e1b43110c296b4da1901c5ee5a /util | |
parent | 3d3d03b2898a16658e281583d3912b24db1c0ac1 (diff) | |
download | aspectj-853ecde20640984a19aae66c1955509428c178fc.tar.gz aspectj-853ecde20640984a19aae66c1955509428c178fc.zip |
close streams
Diffstat (limited to 'util')
-rw-r--r-- | util/testsrc/org/aspectj/util/FileUtilTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |