|
||||||||
| 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.jrefinery.data.junit.MonthTests
public class MonthTests
Tests for the Month class.
| Field Summary | |
|---|---|
protected Month |
dec_9999
|
protected Month |
feb_1900
|
protected Month |
jan_1900
|
protected Month |
nov_9999
|
| Constructor Summary | |
|---|---|
MonthTests(java.lang.String name)
Constructs a new set of tests. |
|
| Method Summary | |
|---|---|
protected void |
setUp()
Common test setup. |
static junit.framework.Test |
suite()
Returns the tests as a test suite. |
void |
testDateConstructor1()
In GMT, the end of Feb 2000 is java.util.Date(951,868,799,999L). |
void |
testDateConstructor2()
In Auckland, the end of Feb 2000 is java.util.Date(951,821,999,999L). |
void |
testDec_9999_next()
Set up a month equal to Dec 9999. |
void |
testDec_9999_previous()
Set up a month equal to Dec 9999. |
void |
testEquals()
|
void |
testEqualsSelf()
Test that a Month instance is equal to itself. |
void |
testJan_1900_next()
Set up a month equal to Jan 1900. |
void |
testJan_1900_previous()
Set up a month equal to Jan 1900. |
void |
testParseMonth()
Test the string parsing code... |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Month jan_1900
protected Month feb_1900
protected Month nov_9999
protected Month dec_9999
| Constructor Detail |
|---|
public MonthTests(java.lang.String name)
The - name of the tests.| Method Detail |
|---|
public static junit.framework.Test suite()
protected void setUp()
setUp in class junit.framework.TestCasepublic void testEqualsSelf()
public void testEquals()
public void testDateConstructor1()
public void testDateConstructor2()
public void testJan_1900_previous()
public void testJan_1900_next()
public void testDec_9999_previous()
public void testDec_9999_next()
public void testParseMonth()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||