Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.lang.time
Class FastDateFormatTest  view FastDateFormatTest download FastDateFormatTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.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 $

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
FastDateFormatTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
static junit.framework.Test suite()
           
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void test_getInstance_String_Locale()
           
 void test_getInstance_String_TimeZone_Locale()
           
 void test_getInstance_String_TimeZone()
           
 void test_getInstance_String()
           
 void test_getInstance()
           
 void testFormat()
           
 void testLowYearPadding()
          Tests that pre-1000AD years get padded with yyyy
 void testShortDateStyleWithLocales()
          Test case for FastDateFormat.getDateInstance(int, java.util.Locale) 55 .
 void testSimpleDate()
          testLowYearPadding showed that the date was buggy This test confirms it, getting 366 back as a date
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FastDateFormatTest

public FastDateFormatTest(java.lang.String name)
Method Detail

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