public class DateUtilsTest extends Object
DateUtils.| Constructor and Description |
|---|
DateUtilsTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testAddDays() |
void |
testAddHours() |
void |
testAddMilliseconds() |
void |
testAddMinutes() |
void |
testAddMonths() |
void |
testAddSeconds() |
void |
testAddWeeks() |
void |
testAddYears() |
void |
testCeil()
Tests various values with the ceiling method
|
void |
testConstructor() |
void |
testIsSameDay_Cal() |
void |
testIsSameDay_Date() |
void |
testIsSameInstant_Cal() |
void |
testIsSameInstant_Date() |
void |
testIsSameLocalTime_Cal() |
void |
testIteratorEx()
Tests the iterator exceptions
|
void |
testLang530() |
void |
testLANG799_DE_FAIL() |
void |
testLANG799_DE_OK() |
void |
testLANG799_EN_FAIL() |
void |
testLANG799_EN_OK() |
void |
testLANG799_EN_WITH_DE_LOCALE() |
void |
testMonthIterator()
Tests the calendar iterator for month-based ranges
|
void |
testParseDate() |
void |
testParseDateWithLeniency() |
void |
testRound()
Tests various values with the round method
|
void |
testRoundLang346()
Tests the Changes Made by LANG-346 to the DateUtils.modify() private method invoked
by DateUtils.round().
|
void |
testSetDays() |
void |
testSetHours() |
void |
testSetMilliseconds() |
void |
testSetMinutes() |
void |
testSetMonths() |
void |
testSetSeconds() |
void |
testSetYears() |
void |
testToCalendar() |
void |
testTruncate()
Tests various values with the trunc method
|
void |
testTruncateLang59()
Tests for LANG-59
see http://issues.apache.org/jira/browse/LANG-59
|
void |
testWeekIterator()
Tests the calendar iterator for week ranges
|
public DateUtilsTest()
public void testConstructor()
public void testIsSameDay_Date()
public void testIsSameDay_Cal()
public void testIsSameInstant_Date()
public void testIsSameInstant_Cal()
public void testIsSameLocalTime_Cal()
public void testParseDate() throws Exception
Exceptionpublic void testParseDateWithLeniency() throws Exception
Exceptionpublic void testAddYears() throws Exception
Exceptionpublic void testAddMonths() throws Exception
Exceptionpublic void testAddWeeks() throws Exception
Exceptionpublic void testAddDays() throws Exception
Exceptionpublic void testAddHours() throws Exception
Exceptionpublic void testAddMinutes() throws Exception
Exceptionpublic void testAddSeconds() throws Exception
Exceptionpublic void testAddMilliseconds() throws Exception
Exceptionpublic void testSetYears() throws Exception
Exceptionpublic void testSetMonths() throws Exception
Exceptionpublic void testSetDays() throws Exception
Exceptionpublic void testSetHours() throws Exception
Exceptionpublic void testSetMinutes() throws Exception
Exceptionpublic void testSetSeconds() throws Exception
Exceptionpublic void testSetMilliseconds() throws Exception
Exceptionpublic void testToCalendar()
public void testRound() throws Exception
Exceptionpublic void testRoundLang346() throws Exception
Exceptionpublic void testTruncate() throws Exception
Exceptionpublic void testTruncateLang59() throws Exception
Exceptionpublic void testLang530() throws ParseException
ParseExceptionpublic void testCeil() throws Exception
Exceptionpublic void testIteratorEx() throws Exception
Exceptionpublic void testWeekIterator() throws Exception
Exceptionpublic void testMonthIterator() throws Exception
Exceptionpublic void testLANG799_EN_OK() throws ParseException
ParseExceptionpublic void testLANG799_EN_FAIL() throws ParseException
ParseExceptionpublic void testLANG799_DE_OK() throws ParseException
ParseExceptionpublic void testLANG799_DE_FAIL() throws ParseException
ParseExceptionpublic void testLANG799_EN_WITH_DE_LOCALE() throws ParseException
ParseExceptionCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.