org.davesag.generica.test
Class MoneyTest

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

public class MoneyTest
extends TestCase
implements Serializable

MoneyTest is collection of all of the tests on the Money.

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

Constructor Summary
MoneyTest()
          null constructor
MoneyTest(String name)
          Constructor that takes a test name.
 
Method Summary
static Test suite()
          test suit
 void testAddMonies()
          tests we can add two moneys.
 void testMoneyComparisons()
          tests we can compare and sort an array of monies properly.
 void testMoneyValues()
          tests we can get the right value back from a money.
 void testSubtractMonies()
          tests we can subtract two moneys.
 String toString()
          the 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

MoneyTest

public MoneyTest()
null constructor


MoneyTest

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

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

testMoneyValues

public void testMoneyValues()
tests we can get the right value back from a money.


testMoneyComparisons

public void testMoneyComparisons()
tests we can compare and sort an array of monies properly.


testAddMonies

public void testAddMonies()
tests we can add two moneys.


testSubtractMonies

public void testSubtractMonies()
tests we can subtract two moneys.


suite

public static Test suite()
test suit

Returns:
suite of tests

toString

public String toString()
the test name

Returns:
name of the test.


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