org.apache.commons.codec.binary
Class Base32InputStreamTest

java.lang.Object
  extended by org.apache.commons.codec.binary.Base32InputStreamTest

public class Base32InputStreamTest
extends Object


Constructor Summary
Base32InputStreamTest()
           
 
Method Summary
 void testAvailable()
          Tests skipping past the end of a stream.
 void testBase32EmptyInputStreamMimeChuckSize()
          Tests the Base32InputStream implementation against empty input.
 void testBase32EmptyInputStreamPemChuckSize()
          Tests the Base32InputStream implementation against empty input.
 void testBase32InputStreamByChunk()
          Tests the Base32InputStream implementation.
 void testBase32InputStreamByteByByte()
          Tests the Base32InputStream implementation.
 void testCodec105()
          Tests the bug reported in CODEC-105.
 void testCodec130()
          Tests the problem reported in CODEC-130.
 void testMarkSupported()
          Tests markSupported.
 void testRead0()
          Tests read returning 0
 void testReadNull()
          Tests read with null.
 void testReadOutOfBounds()
          Tests read throwing IndexOutOfBoundsException
 void testSkipBig()
          Tests skipping number of characters larger than the internal buffer.
 void testSkipNone()
          Tests skipping as a noop
 void testSkipPastEnd()
          Tests skipping past the end of a stream.
 void testSkipToEnd()
          Tests skipping to the end of a stream.
 void testSkipWrongArgument()
          Tests if negative arguments to skip are handled correctly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base32InputStreamTest

public Base32InputStreamTest()
Method Detail

testCodec130

public void testCodec130()
                  throws IOException
Tests the problem reported in CODEC-130. Missing / wrong implementation of skip.

Throws:
IOException

testCodec105

public void testCodec105()
                  throws IOException
Tests the bug reported in CODEC-105. Bad interactions with InputStream when reading one byte at a time.

Throws:
IOException

testAvailable

public void testAvailable()
                   throws Throwable
Tests skipping past the end of a stream.

Throws:
Throwable

testBase32EmptyInputStreamMimeChuckSize

public void testBase32EmptyInputStreamMimeChuckSize()
                                             throws Exception
Tests the Base32InputStream implementation against empty input.

Throws:
Exception - for some failure scenarios.

testBase32EmptyInputStreamPemChuckSize

public void testBase32EmptyInputStreamPemChuckSize()
                                            throws Exception
Tests the Base32InputStream implementation against empty input.

Throws:
Exception - for some failure scenarios.

testBase32InputStreamByChunk

public void testBase32InputStreamByChunk()
                                  throws Exception
Tests the Base32InputStream implementation.

Throws:
Exception - for some failure scenarios.

testBase32InputStreamByteByByte

public void testBase32InputStreamByteByByte()
                                     throws Exception
Tests the Base32InputStream implementation.

Throws:
Exception - for some failure scenarios.

testMarkSupported

public void testMarkSupported()
                       throws Exception
Tests markSupported.

Throws:
Exception

testRead0

public void testRead0()
               throws Exception
Tests read returning 0

Throws:
Exception

testReadNull

public void testReadNull()
                  throws Exception
Tests read with null.

Throws:
Exception - for some failure scenarios.

testReadOutOfBounds

public void testReadOutOfBounds()
                         throws Exception
Tests read throwing IndexOutOfBoundsException

Throws:
Exception

testSkipNone

public void testSkipNone()
                  throws Throwable
Tests skipping as a noop

Throws:
Throwable

testSkipBig

public void testSkipBig()
                 throws Throwable
Tests skipping number of characters larger than the internal buffer.

Throws:
Throwable

testSkipPastEnd

public void testSkipPastEnd()
                     throws Throwable
Tests skipping past the end of a stream.

Throws:
Throwable

testSkipToEnd

public void testSkipToEnd()
                   throws Throwable
Tests skipping to the end of a stream.

Throws:
Throwable

testSkipWrongArgument

public void testSkipWrongArgument()
                           throws Throwable
Tests if negative arguments to skip are handled correctly.

Throws:
Throwable


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.