|
||||||||||
| 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.TestDateOfBirth
public class TestDateOfBirth
| Constructor Summary | |
|---|---|
TestDateOfBirth(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 |
testAgeCalculations()
Test DOB calculations. |
void |
testSetAsStringFormat()
|
void |
testStringDobMethods()
Test that the locale specific text formatting of dates works. |
void |
testStringDobMethodsSpecificLocale()
Test that the locale specific text formatting of dates works. |
void |
testYMDConstructor()
Test constructor that takes year month day values. |
| 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 TestDateOfBirth(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 testAgeCalculations()
throws java.lang.Exception
java.lang.Exceptionpublic void testYMDConstructor()
public void testStringDobMethods()
throws java.lang.Exception
java.lang.Exception
public void testStringDobMethodsSpecificLocale()
throws java.lang.Exception
java.lang.Exception
public void testSetAsStringFormat()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||