org.davesag.generica.test
Class CryptoTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.davesag.generica.test.CryptoTest
All Implemented Interfaces:
Serializable, Test

public class CryptoTest
extends TestCase
implements Serializable

CryptoTest is a suite of JUnit compatable tests that makes sure our crypto code is doing what we think it is.

Since:
Generica 1.0
Version:
CVS Revision $Id: CryptoTest.java,v 1.8 2004/03/30 13:00:42 davesag Exp $
Author:
Dave Sag http://www.davesag.com
See Also:
Serialized Form

Constructor Summary
CryptoTest()
          null constructor
CryptoTest(String name)
          Constructor that takes a test name.
 
Method Summary
static Test suite()
          the test suite
 void testByteArraysAndStrings()
          tesing strings and byte arrays
 void testTwoMD5sAreEqual()
          tests that the md5 of a string is the same when done twice.
 String toString()
          test name
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CryptoTest

public CryptoTest()
null constructor


CryptoTest

public CryptoTest(String name)
Constructor that takes a test name.

Parameters:
name - the name of this suite of tests
Method Detail

testByteArraysAndStrings

public void testByteArraysAndStrings()
tesing strings and byte arrays


testTwoMD5sAreEqual

public void testTwoMD5sAreEqual()
tests that the md5 of a string is the same when done twice.


suite

public static Test suite()
the test suite

Returns:
suite of tests

toString

public String toString()
test name

Returns:
test name


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.