edu.rice.cs.plt.io
Class MessageDigestOutputStreamTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.plt.io.MessageDigestOutputStreamTest
All Implemented Interfaces:
Test

public class MessageDigestOutputStreamTest
extends TestCase


Constructor Summary
MessageDigestOutputStreamTest()
           
 
Method Summary
static void main(String... args)
          Run to compare performance.
 void testMD5()
           
 void testSHA1()
           
 void testSHA256()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageDigestOutputStreamTest

public MessageDigestOutputStreamTest()
Method Detail

testMD5

public void testMD5()
             throws IOException
Throws:
IOException

testSHA1

public void testSHA1()
              throws IOException
Throws:
IOException

testSHA256

public void testSHA256()
                throws IOException
Throws:
IOException

main

public static void main(String... args)
                 throws IOException
Run to compare performance. args[0] is a file name.

Throws:
IOException