java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.commons.lang.time.FastDateFormatTest
- All Implemented Interfaces:
- junit.framework.Test
- public class FastDateFormatTest
- extends junit.framework.TestCase
Unit tests FastDateFormat.
- Since:
- 2.0
- Version:
- $Id: FastDateFormatTest.java 161244 2005-04-14 06:16:36Z ggregory $
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
FastDateFormatTest
public FastDateFormatTest(java.lang.String name)
main
public static void main(java.lang.String[] args)
suite
public static junit.framework.Test suite()
setUp
protected void setUp()
throws java.lang.Exception
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
tearDown
protected void tearDown()
throws java.lang.Exception
- Description copied from class:
junit.framework.TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
test_getInstance
public void test_getInstance()
test_getInstance_String
public void test_getInstance_String()
test_getInstance_String_TimeZone
public void test_getInstance_String_TimeZone()
test_getInstance_String_Locale
public void test_getInstance_String_Locale()
test_getInstance_String_TimeZone_Locale
public void test_getInstance_String_TimeZone_Locale()
testFormat
public void testFormat()
testShortDateStyleWithLocales
public void testShortDateStyleWithLocales()
- Test case for
FastDateFormat.getDateInstance(int, java.util.Locale) 55 .
testLowYearPadding
public void testLowYearPadding()
- Tests that pre-1000AD years get padded with yyyy
testSimpleDate
public void testSimpleDate()
- testLowYearPadding showed that the date was buggy
This test confirms it, getting 366 back as a date