org.apache.commons.codec.binary
Class Base64Test
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.commons.codec.binary.Base64Test
- All Implemented Interfaces:
- junit.framework.Test
public class Base64Test
- extends junit.framework.TestCase
- Version:
- $Id: Base64Test.java 480406 2006-11-29 04:56:58Z bayard $
- Author:
- Apache Software Foundation
|
Constructor Summary |
Base64Test(java.lang.String name)
Construct a new instance of this test case. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Base64Test
public Base64Test(java.lang.String name)
- Construct a new instance of this test case.
- Parameters:
name - Name of the test case
testBase64
public void testBase64()
- Test the Base64 implementation
testDecodePadMarkerIndex2
public void testDecodePadMarkerIndex2()
- Tests conditional true branch for "marker0" test.
testDecodePadMarkerIndex3
public void testDecodePadMarkerIndex3()
- Tests conditional branches for "marker1" test.
testDecodePadOnly
public void testDecodePadOnly()
testDecodePadOnlyChunked
public void testDecodePadOnlyChunked()
testEncodeDecodeSmall
public void testEncodeDecodeSmall()
testEncodeDecodeRandom
public void testEncodeDecodeRandom()
testRfc2045Section2Dot1CrLfDefinition
public void testRfc2045Section2Dot1CrLfDefinition()
- Tests RFC 2045 section 2.1 CRLF definition.
testRfc2045Section6Dot8ChunkSizeDefinition
public void testRfc2045Section6Dot8ChunkSizeDefinition()
- Tests RFC 2045 section 6.8 chuck size definition.
testSingletons
public void testSingletons()
testSingletonsChunked
public void testSingletonsChunked()
testTriplets
public void testTriplets()
testTripletsChunked
public void testTripletsChunked()
testKnownEncodings
public void testKnownEncodings()
testKnownDecodings
public void testKnownDecodings()
testNonBase64Test
public void testNonBase64Test()
throws java.lang.Exception
- Throws:
java.lang.Exception
testIgnoringNonBase64InDecode
public void testIgnoringNonBase64InDecode()
throws java.lang.Exception
- Throws:
java.lang.Exception
testIsArrayByteBase64
public void testIsArrayByteBase64()
testObjectDecodeWithInvalidParameter
public void testObjectDecodeWithInvalidParameter()
throws java.lang.Exception
- Throws:
java.lang.Exception
testObjectDecodeWithValidParameter
public void testObjectDecodeWithValidParameter()
throws java.lang.Exception
- Throws:
java.lang.Exception
testObjectEncodeWithInvalidParameter
public void testObjectEncodeWithInvalidParameter()
throws java.lang.Exception
- Throws:
java.lang.Exception
testObjectEncodeWithValidParameter
public void testObjectEncodeWithValidParameter()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDecodeWithWhitespace
public void testDecodeWithWhitespace()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDiscardWhitespace
public void testDiscardWhitespace()
throws java.lang.Exception
- Throws:
java.lang.Exception
getRandom
public java.util.Random getRandom()
- Returns:
- Returns the _random.
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.