|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.ail.commercialtest.TestCurrencyAmount
public class TestCurrencyAmount
| Constructor Summary | |
|---|---|
TestCurrencyAmount(java.lang.String name)
Constructs a test case with the given name. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Run this testcase from the command line. |
static junit.framework.Test |
suite()
Create an instance of this test case as a TestSuite. |
void |
testAutoCreate()
A CurrencyAmount created with the default constructor should (when its add/subtract method is called) automatically assume the currency of the CurrencyAmount passed in. |
void |
testCurrencyApplyRate()
|
void |
testCurrencyScale()
|
void |
testGoodValues()
|
void |
testGreaterThan()
Test the greaterThan method. |
void |
testLessThan()
Test the lessThan method. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, getName, run, run, runBare, setName, 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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestCurrencyAmount(java.lang.String name)
name - The tests name| Method Detail |
|---|
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
args - No command line args are required.public void testGoodValues()
public void testCurrencyScale()
public void testCurrencyApplyRate()
public void testAutoCreate()
public void testGreaterThan()
greaterThan method.
public void testLessThan()
lessThan method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||