|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jcoderz.commons.types.DateTest
public class DateTest
Test class to test the Date class.
| Constructor Summary | |
|---|---|
DateTest()
|
|
| Method Summary | |
|---|---|
void |
testAfter()
Tests the after method. |
void |
testAfterOrEqual()
Tests the after or equal method. |
void |
testBefore()
Tests the before method. |
void |
testBeforeOrEqual()
Tests the after method. |
void |
testCompareTo()
Successful test for "compareTo". |
void |
testDateString()
Successful test for "toString". |
void |
testEarliest()
Tests the earliest method. |
void |
testElapsed()
Tests the method Date.elapsedMillis(). |
void |
testElapsedDate()
Tests the method Date.elapsedMillis(Date). |
void |
testEquals()
Successful test for "equals". |
void |
testFromSqlDate()
Successful test for "fromSqlDate". |
void |
testFromSqlTimestamp()
Successful test for "fromSqlTimestamp". |
void |
testFromString()
Successful test for "fromString (String date, String pattern)". |
void |
testGetDaysSinceEpoch()
Tests the Date.getDaysSinceEpoch() method. |
void |
testGetDaysSinceEpochDate()
Tests the Date.getDaysSinceEpoch(Date) method. |
void |
testHashCode()
Method to test for Date.hashCode(). |
void |
testLatest()
Tests the latest method. |
void |
testMinus()
Tests the method Date.minus(long). |
void |
testNow()
Successful test for "now". |
void |
testNowPlus()
Successful test for "nowPlus". |
void |
testPlus()
Tests the method Date.plus(long). |
void |
testSerialize()
Simple test method to check basic serialization. |
void |
testSqlTimestamp()
Tests the sql timestamp handling. |
void |
testSqlTimestampWithNanos()
Tests the sql timestamp handling. |
void |
testToSqlDate()
Successful test for "toSqlDate". |
void |
testToSqlTimestamp()
Successful test for "toSqlTimestamp". |
void |
testToString()
Successful test for "toString". |
void |
testToStringWithMillies()
Successful test for "toString". |
void |
testToUtilDate()
Successful test for "toUtilDate". |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateTest()
| Method Detail |
|---|
public void testFromSqlDate()
public void testFromSqlTimestamp()
public void testNow()
public void testNowPlus()
public void testPlus()
Date.plus(long).
public void testMinus()
Date.minus(long).
public void testFromString()
throws ParseException
ParseException - if the test case fails.public void testToString()
public void testToStringWithMillies()
public void testDateString()
public void testToUtilDate()
public void testToSqlDate()
public void testToSqlTimestamp()
public void testEquals()
public void testCompareTo()
public void testSerialize()
throws IOException,
ClassNotFoundException
ClassNotFoundException - in case of an test case error
IOException - in case of an test case errorpublic void testSqlTimestamp()
public void testSqlTimestampWithNanos()
public void testGetDaysSinceEpoch()
Date.getDaysSinceEpoch() method.
public void testGetDaysSinceEpochDate()
Date.getDaysSinceEpoch(Date) method.
public void testHashCode()
Date.hashCode().
public void testElapsed()
Date.elapsedMillis().
public void testElapsedDate()
Date.elapsedMillis(Date).
public void testAfter()
public void testAfterOrEqual()
public void testBefore()
public void testBeforeOrEqual()
public void testEarliest()
public void testLatest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||