public class Base64Test extends AbstractCoderTest
enc| Constructor and Description |
|---|
Base64Test(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isEncodedChar(char c) |
protected char |
paddingChar() |
protected void |
setUp() |
void |
testDecodeStaysInsideSlice()
decode(byte[], off, length, out) must not look at anything outside the slice: an empty slice
produces nothing and a slice that ends part way through a block is rejected, whatever follows it.
|
void |
testDecodeStringTruncated()
decode(String, out) must reject a string that ends part way through a block, whatever
whitespace follows it, rather than read past the last character.
|
void |
testInvalidInput() |
void |
testSamples() |
void |
testWithWhitespace() |
testEncodeassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toStringprotected void setUp()
setUp in class AbstractCoderTestpublic void testSamples()
throws java.io.IOException
java.io.IOExceptionpublic void testInvalidInput()
throws java.io.IOException
java.io.IOExceptionpublic void testDecodeStaysInsideSlice()
throws java.io.IOException
java.io.IOExceptionpublic void testDecodeStringTruncated()
throws java.io.IOException
java.io.IOExceptionpublic void testWithWhitespace()
throws java.lang.Exception
java.lang.Exceptionprotected char paddingChar()
paddingChar in class AbstractCoderTestprotected boolean isEncodedChar(char c)
isEncodedChar in class AbstractCoderTest