net.sourceforge.sqlunit.test
Class MD5DigestionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.sqlunit.test.MD5DigestionTest
All Implemented Interfaces:
junit.framework.Test

public class MD5DigestionTest
extends junit.framework.TestCase

Tests MD5 digesting for various types of data.

Version:
$Revision: 1.9 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Constructor Summary
MD5DigestionTest(java.lang.String name)
          Boilerplate constructor.
 
Method Summary
static void main(java.lang.String[] argv)
          Boilerplate main method.
static junit.framework.Test suite()
          Boilerplate suite() method.
 void testDigestBinaryFile()
          Tests MD5 digestion of a binary file
 void testDigestJavaObject()
          Tests MD5 digestion of a serialized Java object file.
 void testDigestTextFile()
          Tests MD5 digestion of a text filw.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Constructor Detail

MD5DigestionTest

public MD5DigestionTest(java.lang.String name)
Boilerplate constructor.

Parameters:
name - the name of this test class.
Method Detail

main

public static void main(java.lang.String[] argv)
Boilerplate main method.

Parameters:
argv - the arguments (none).

suite

public static junit.framework.Test suite()
Boilerplate suite() method.

Returns:
a Test object.

testDigestJavaObject

public final void testDigestJavaObject()
                                throws java.lang.Exception
Tests MD5 digestion of a serialized Java object file.

Throws:
java.lang.Exception - if there was a problem.

testDigestTextFile

public final void testDigestTextFile()
                              throws java.lang.Exception
Tests MD5 digestion of a text filw.

Throws:
java.lang.Exception - if there was a problem.

testDigestBinaryFile

public final void testDigestBinaryFile()
                                throws java.lang.Exception
Tests MD5 digestion of a binary file

Throws:
java.lang.Exception - if there was a problem.