diff options
Diffstat (limited to 'src/test/java/com/android/volley/toolbox/PoolingByteArrayOutputStreamTest.java')
-rw-r--r-- | src/test/java/com/android/volley/toolbox/PoolingByteArrayOutputStreamTest.java | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/test/java/com/android/volley/toolbox/PoolingByteArrayOutputStreamTest.java b/src/test/java/com/android/volley/toolbox/PoolingByteArrayOutputStreamTest.java index c3bfac7..266edcd 100644 --- a/src/test/java/com/android/volley/toolbox/PoolingByteArrayOutputStreamTest.java +++ b/src/test/java/com/android/volley/toolbox/PoolingByteArrayOutputStreamTest.java @@ -16,36 +16,39 @@ package com.android.volley.toolbox; +import static org.junit.Assert.assertTrue; + import java.io.IOException; import java.util.Arrays; - import org.junit.Test; -import static org.junit.Assert.*; - public class PoolingByteArrayOutputStreamTest { - @Test public void pooledOneBuffer() throws IOException { + @Test + public void pooledOneBuffer() throws IOException { ByteArrayPool pool = new ByteArrayPool(32768); writeOneBuffer(pool); writeOneBuffer(pool); writeOneBuffer(pool); } - @Test public void pooledIndividualWrites() throws IOException { + @Test + public void pooledIndividualWrites() throws IOException { ByteArrayPool pool = new ByteArrayPool(32768); writeBytesIndividually(pool); writeBytesIndividually(pool); writeBytesIndividually(pool); } - @Test public void unpooled() throws IOException { + @Test + public void unpooled() throws IOException { ByteArrayPool pool = new ByteArrayPool(0); writeOneBuffer(pool); writeOneBuffer(pool); writeOneBuffer(pool); } - @Test public void unpooledIndividualWrites() throws IOException { + @Test + public void unpooledIndividualWrites() throws IOException { ByteArrayPool pool = new ByteArrayPool(0); writeBytesIndividually(pool); writeBytesIndividually(pool); |