org.fcrepo.server.test
Class JournalBase64Test

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.fcrepo.server.test.JournalBase64Test
All Implemented Interfaces:
junit.framework.Test

public class JournalBase64Test
extends junit.framework.TestCase

Confirm that we can properly encode and decode any data stream that comes our way.

Author:
Jim Blake

Constructor Summary
JournalBase64Test(String name)
           
 
Method Summary
 void testOnArbitraryBytes()
          Generate a temporary file with all possible bytes in it.
 void testOnKnownProblemFile()
          Generate a temporary file with a troublesome section in it - this is text that is known to have caused problems with the previous encode/decode scheme.
 void testOnUTF8Characters()
          Generate a temporary file with all sorts of Unicode characters in it, encoded to UTF-8.
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JournalBase64Test

public JournalBase64Test(String name)
Method Detail

testOnArbitraryBytes

public void testOnArbitraryBytes()
                          throws IOException
Generate a temporary file with all possible bytes in it. Encode it, decode it, test for correctness.

Throws:
IOException

testOnUTF8Characters

public void testOnUTF8Characters()
                          throws IOException
Generate a temporary file with all sorts of Unicode characters in it, encoded to UTF-8. Encode it, decode it, test for correctness.

Throws:
IOException

testOnKnownProblemFile

public void testOnKnownProblemFile()
                            throws IOException
Generate a temporary file with a troublesome section in it - this is text that is known to have caused problems with the previous encode/decode scheme. Encode it, decode it, test for correctness.

Throws:
IOException


Copyright © 2011 DuraSpace. All Rights Reserved.