|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.davesag.generica.test.MoneyTest
MoneyTest is collection of all of the tests on the Money.
| 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 |
public MoneyTest()
public MoneyTest(String name)
name - the name of this suite of tests| Method Detail |
public void testMoneyValues()
public void testMoneyComparisons()
public void testAddMonies()
public void testSubtractMonies()
public static Test suite()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||