|
||||||||||
| 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.TestRate
public class TestRate
| Constructor Summary | |
|---|---|
TestRate(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 |
testBadFormats()
Test how badly formatted arguments are handled by the constructor. |
void |
testGoodFormats()
Test valid arguments for the Rate constructor |
void |
testRateCalculations()
|
| 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 TestRate(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 testGoodFormats()
throws java.lang.Exception
java.lang.Exceptionpublic void testBadFormats()
public void testRateCalculations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||