|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.codec.binary.Base64Test
public class Base64Test
Test cases for Base64 class.
Constructor Summary | |
---|---|
Base64Test()
|
Method Summary | |
---|---|
Random |
getRandom()
|
void |
testBase64()
Test the Base64 implementation |
void |
testByteToStringVariations()
|
void |
testChunkedEncodeMultipleOf76()
Tests Base64.encodeBase64(). |
void |
testCodec112()
|
void |
testCodec68()
CODEC-68: isBase64 throws ArrayIndexOutOfBoundsException on some non-BASE64 bytes |
void |
testCodeInteger1()
|
void |
testCodeInteger2()
|
void |
testCodeInteger3()
|
void |
testCodeInteger4()
|
void |
testCodeIntegerEdgeCases()
|
void |
testCodeIntegerNull()
|
void |
testConstructor_Int_ByteArray_Boolean_UrlSafe()
|
void |
testConstructor_Int_ByteArray_Boolean()
|
void |
testConstructors()
|
void |
testDecodePadMarkerIndex2()
Tests conditional true branch for "marker0" test. |
void |
testDecodePadMarkerIndex3()
Tests conditional branches for "marker1" test. |
void |
testDecodePadOnly()
|
void |
testDecodePadOnlyChunked()
|
void |
testDecodeWithWhitespace()
|
void |
testEmptyBase64()
Test encode and decode of empty byte array. |
void |
testEncodeDecodeRandom()
|
void |
testEncodeDecodeSmall()
|
void |
testEncodeOverMaxSize()
|
void |
testHugeLineSeparator()
Tests a lineSeparator much bigger than DEFAULT_BUFFER_SIZE. |
void |
testIgnoringNonBase64InDecode()
|
void |
testIsArrayByteBase64()
|
void |
testIsStringBase64()
Test the isStringBase64 method. |
void |
testIsUrlSafe()
Tests isUrlSafe. |
void |
testKnownDecodings()
|
void |
testKnownEncodings()
|
void |
testNonBase64Test()
|
void |
testObjectDecodeWithInvalidParameter()
|
void |
testObjectDecodeWithValidParameter()
|
void |
testObjectEncode()
|
void |
testObjectEncodeWithInvalidParameter()
|
void |
testObjectEncodeWithValidParameter()
|
void |
testPairs()
|
void |
testRfc1421Section6Dot8ChunkSizeDefinition()
Tests RFC 1421 section 4.3.2.4 chuck size definition. |
void |
testRfc2045Section2Dot1CrLfDefinition()
Tests RFC 2045 section 2.1 CRLF definition. |
void |
testRfc2045Section6Dot8ChunkSizeDefinition()
Tests RFC 2045 section 6.8 chuck size definition. |
void |
testRfc4648Section10Decode()
Tests RFC 4648 section 10 test vectors. |
void |
testRfc4648Section10DecodeEncode()
Tests RFC 4648 section 10 test vectors. |
void |
testRfc4648Section10DecodeWithCrLf()
Tests RFC 4648 section 10 test vectors. |
void |
testRfc4648Section10Encode()
Tests RFC 4648 section 10 test vectors. |
void |
testRfc4648Section10EncodeDecode()
Tests RFC 4648 section 10 test vectors. |
void |
testSingletons()
|
void |
testSingletonsChunked()
|
void |
testStringToByteVariations()
|
void |
testTriplets()
|
void |
testTripletsChunked()
|
void |
testUrlSafe()
Tests url-safe Base64 against random data, sizes 0 to 150. |
void |
testUUID()
Base64 encoding of UUID's is a common use-case, especially in URL-SAFE mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64Test()
Method Detail |
---|
public Random getRandom()
public void testIsStringBase64()
public void testBase64()
public void testChunkedEncodeMultipleOf76()
public void testCodec68()
public void testCodeInteger1()
public void testCodeInteger2()
public void testCodeInteger3()
public void testCodeInteger4()
public void testCodeIntegerEdgeCases()
public void testCodeIntegerNull()
public void testConstructors()
public void testConstructor_Int_ByteArray_Boolean()
public void testConstructor_Int_ByteArray_Boolean_UrlSafe()
public void testDecodePadMarkerIndex2()
public void testDecodePadMarkerIndex3()
public void testDecodePadOnly()
public void testDecodePadOnlyChunked()
public void testDecodeWithWhitespace() throws Exception
Exception
public void testEmptyBase64()
public void testEncodeDecodeRandom()
public void testEncodeDecodeSmall()
public void testEncodeOverMaxSize() throws Exception
Exception
public void testCodec112()
public void testIgnoringNonBase64InDecode() throws Exception
Exception
public void testIsArrayByteBase64()
public void testIsUrlSafe()
public void testKnownDecodings()
public void testKnownEncodings()
public void testNonBase64Test() throws Exception
Exception
public void testObjectDecodeWithInvalidParameter() throws Exception
Exception
public void testObjectDecodeWithValidParameter() throws Exception
Exception
public void testObjectEncodeWithInvalidParameter() throws Exception
Exception
public void testObjectEncodeWithValidParameter() throws Exception
Exception
public void testObjectEncode() throws Exception
Exception
public void testPairs()
public void testRfc2045Section2Dot1CrLfDefinition()
public void testRfc2045Section6Dot8ChunkSizeDefinition()
public void testRfc1421Section6Dot8ChunkSizeDefinition()
public void testRfc4648Section10Decode()
public void testRfc4648Section10DecodeWithCrLf()
public void testRfc4648Section10Encode()
public void testRfc4648Section10DecodeEncode()
public void testRfc4648Section10EncodeDecode()
public void testSingletons()
public void testSingletonsChunked()
public void testTriplets()
public void testTripletsChunked()
public void testUrlSafe()
public void testUUID() throws org.apache.commons.codec.DecoderException
org.apache.commons.codec.DecoderException
- if Hex.decode() fails - a serious problem since Hex comes from our own commons-codec!public void testByteToStringVariations() throws org.apache.commons.codec.DecoderException
org.apache.commons.codec.DecoderException
public void testStringToByteVariations() throws org.apache.commons.codec.DecoderException
org.apache.commons.codec.DecoderException
public void testHugeLineSeparator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |