org.apache.commons.codec.digest
Class DigestUtilsTest

java.lang.Object
  extended by org.apache.commons.codec.digest.DigestUtilsTest

public class DigestUtilsTest
extends Object

Tests DigestUtils methods.

Version:
$Id: DigestUtilsTest.html 889935 2013-12-11 05:05:13Z ggregory $

Constructor Summary
DigestUtilsTest()
           
 
Method Summary
protected  void setUp()
           
 void testConstructable()
           
 void testInternalNoSuchAlgorithmException()
           
 void testMd2Hex()
           
 void testMd2HexLength()
          An MD2 hash converted to hex should always be 32 characters.
 void testMd2Length()
          An MD2 hash should always be a 16 element byte[].
 void testMd5Hex()
           
 void testMd5HexLength()
          An MD5 hash converted to hex should always be 32 characters.
 void testMd5Length()
          An MD5 hash should always be a 16 element byte[].
 void testSha1Hex()
           
 void testSha1UpdateWithByteArray()
           
 void testSha1UpdateWithString()
           
 void testSha256()
           
 void testSha384()
           
 void testSha512()
           
 void testShaHex()
           
 void testShaUpdateWithByteArray()
           
 void testShaUpdateWithString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestUtilsTest

public DigestUtilsTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

testConstructable

public void testConstructable()

testInternalNoSuchAlgorithmException

public void testInternalNoSuchAlgorithmException()

testMd2Hex

public void testMd2Hex()
                throws IOException
Throws:
IOException

testMd2HexLength

public void testMd2HexLength()
An MD2 hash converted to hex should always be 32 characters.


testMd2Length

public void testMd2Length()
An MD2 hash should always be a 16 element byte[].


testMd5Hex

public void testMd5Hex()
                throws IOException
Throws:
IOException

testMd5HexLength

public void testMd5HexLength()
An MD5 hash converted to hex should always be 32 characters.


testMd5Length

public void testMd5Length()
An MD5 hash should always be a 16 element byte[].


testSha1Hex

public void testSha1Hex()
                 throws IOException
Throws:
IOException

testSha1UpdateWithByteArray

public void testSha1UpdateWithByteArray()

testSha1UpdateWithString

public void testSha1UpdateWithString()

testSha256

public void testSha256()
                throws IOException
Throws:
IOException

testSha384

public void testSha384()
                throws IOException
Throws:
IOException

testSha512

public void testSha512()
                throws IOException
Throws:
IOException

testShaHex

public void testShaHex()
                throws IOException
Throws:
IOException

testShaUpdateWithByteArray

public void testShaUpdateWithByteArray()

testShaUpdateWithString

public void testShaUpdateWithString()


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.