org.apache.commons.codec.binary
Class Base64OutputStreamTest

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

public class Base64OutputStreamTest
extends Object

Since:
1.4
Version:
$Id $

Constructor Summary
Base64OutputStreamTest()
           
 
Method Summary
 void testBase64EmptyOutputStreamMimeChunkSize()
          Test the Base64OutputStream implementation against empty input.
 void testBase64EmptyOutputStreamPemChunkSize()
          Test the Base64OutputStream implementation against empty input.
 void testBase64OutputStreamByChunk()
          Test the Base64OutputStream implementation
 void testBase64OutputStreamByteByByte()
          Test the Base64OutputStream implementation
 void testCodec98NPE()
          Test the Base64OutputStream implementation against the special NPE inducing input identified in the CODEC-98 bug.
 void testWriteOutOfBounds()
          Tests Base64OutputStream.write for expected IndexOutOfBoundsException conditions.
 void testWriteToNullCoverage()
          Tests Base64OutputStream.write(null).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64OutputStreamTest

public Base64OutputStreamTest()
Method Detail

testCodec98NPE

public void testCodec98NPE()
                    throws Exception
Test the Base64OutputStream implementation against the special NPE inducing input identified in the CODEC-98 bug.

Throws:
Exception - for some failure scenarios.

testBase64EmptyOutputStreamMimeChunkSize

public void testBase64EmptyOutputStreamMimeChunkSize()
                                              throws Exception
Test the Base64OutputStream implementation against empty input.

Throws:
Exception - for some failure scenarios.

testBase64EmptyOutputStreamPemChunkSize

public void testBase64EmptyOutputStreamPemChunkSize()
                                             throws Exception
Test the Base64OutputStream implementation against empty input.

Throws:
Exception - for some failure scenarios.

testBase64OutputStreamByChunk

public void testBase64OutputStreamByChunk()
                                   throws Exception
Test the Base64OutputStream implementation

Throws:
Exception - for some failure scenarios.

testBase64OutputStreamByteByByte

public void testBase64OutputStreamByteByByte()
                                      throws Exception
Test the Base64OutputStream implementation

Throws:
Exception - for some failure scenarios.

testWriteOutOfBounds

public void testWriteOutOfBounds()
                          throws Exception
Tests Base64OutputStream.write for expected IndexOutOfBoundsException conditions.

Throws:
Exception - for some failure scenarios.

testWriteToNullCoverage

public void testWriteToNullCoverage()
                             throws Exception
Tests Base64OutputStream.write(null).

Throws:
Exception - for some failure scenarios.


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