com.ail.commercialtest
Class TestRate

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.ail.commercialtest.TestRate
All Implemented Interfaces:
junit.framework.Test

public class TestRate
extends junit.framework.TestCase

Version:
$Revision: 1.1 $

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

TestRate

public TestRate(java.lang.String name)
Constructs a test case with the given name.

Parameters:
name - The tests name
Method Detail

suite

public static junit.framework.Test suite()
Create an instance of this test case as a TestSuite.

Returns:
Test an instance of this test case.

main

public static void main(java.lang.String[] args)
Run this testcase from the command line.

Parameters:
args - No command line args are required.

testGoodFormats

public void testGoodFormats()
                     throws java.lang.Exception
Test valid arguments for the Rate constructor

Throws:
java.lang.Exception

testBadFormats

public void testBadFormats()
Test how badly formatted arguments are handled by the constructor.


testRateCalculations

public void testRateCalculations()