test.org.hccp.util
Class Base64UtilityTest

java.lang.Object
  |
  +--TestCase
        |
        +--test.org.hccp.util.Base64UtilityTest

public class Base64UtilityTest
extends TestCase

Test case for Base64Utility.

See Also:
Serialized Form

Field Summary
static java.lang.String HELLO_WORLD_DECODED
           
static java.lang.String HELLO_WORLD_ENCODED
           
static java.lang.String SLOGAN_DECODED
           
static java.lang.String SLOGAN_ENCODED
           
 
Constructor Summary
Base64UtilityTest()
           
 
Method Summary
 void testDecodingWhileIgnoringNewlinesInEncodedString()
          Testing to see if newline characters are ignored:

Example input:
 void testSimpleDecoding()
          Simple test of "Hello World".
 void testSimpleEncoding()
          Simple test of "Hello World".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HELLO_WORLD_DECODED

public static final java.lang.String HELLO_WORLD_DECODED
See Also:
Constant Field Values

HELLO_WORLD_ENCODED

public static final java.lang.String HELLO_WORLD_ENCODED
See Also:
Constant Field Values

SLOGAN_DECODED

public static final java.lang.String SLOGAN_DECODED
See Also:
Constant Field Values

SLOGAN_ENCODED

public static final java.lang.String SLOGAN_ENCODED
See Also:
Constant Field Values
Constructor Detail

Base64UtilityTest

public Base64UtilityTest()
Method Detail

testSimpleEncoding

public void testSimpleEncoding()
Simple test of "Hello World".


testSimpleDecoding

public void testSimpleDecoding()
Simple test of "Hello World".


testDecodingWhileIgnoringNewlinesInEncodedString

public void testDecodingWhileIgnoringNewlinesInEncodedString()
Testing to see if newline characters are ignored:

Example input:
TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0
aGlzIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1
c3Qgb2YgdGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0
aGUgY29udGludWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdl
LCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=