org.apache.commons.beanutils.locale.converters
Class DateLocaleConverterTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.beanutils.locale.converters.BaseLocaleConverterTestCase
              extended by org.apache.commons.beanutils.locale.converters.DateLocaleConverterTestCase
All Implemented Interfaces:
junit.framework.Test

public class DateLocaleConverterTestCase
extends BaseLocaleConverterTestCase

Test Case for the DateLocaleConverter class.

Version:
$Revision: 812183 $ $Date: 2009-09-07 16:08:54 +0100 (Mon, 07 Sep 2009) $
Author:
Robert Burrell Donkin, Niall Pemberton

Field Summary
protected  String defaultDatePattern
           
protected  String defaultDateValue
           
protected  String defaultShortDateValue
           
protected  String localizedDatePattern
           
protected  String localizedDateValue
           
protected  String localizedShortDateValue
           
protected  boolean validLocalDateSymbols
           
 
Fields inherited from class org.apache.commons.beanutils.locale.converters.BaseLocaleConverterTestCase
converter, defaultDecimalPattern, defaultDecimalValue, defaultIntegerPattern, defaultIntegerValue, defaultLocale, defaultValue, expectedDecimalValue, expectedIntegerValue, expectedValue, localizedDecimalPattern, localizedDecimalValue, localizedIntegerPattern, localizedIntegerValue, localizedLocale, origLocale, result
 
Constructor Summary
DateLocaleConverterTestCase(String name)
           
 
Method Summary
 void setUp()
          Set up instance variables required by this test case.
 void tearDown()
          Tear down instance variables required by this test case.
 void testCalendarObject()
          Test Calendar
 void testConstructor_2()
          Test Converter() constructor Uses the default locale, no default value
 void testConstructor_3()
          Test Converter(locPattern) constructor Uses the default locale, no default value
 void testConstructor_4()
          Test Converter(Locale) constructor
 void testConstructor_5()
          Test Converter(Locale, locPattern) constructor
 void testConstructor_6()
          Test Converter(Locale, pattern) constructor
 void testConstructor_7()
          Test Converter(Locale, pattern, locPattern) constructor
 void testConstructor_8()
          Test Converter(defaultValue) constructor
 void testConstructor_9()
          Test Converter(defaultValue, locPattern) constructor
 void testConstructorMain()
          Test Converter(defaultValue, locale, pattern, localizedPattern) constructor
 void testDateObject()
          Test java.util.Date
 void testInvalidDate()
          Test invalid date
 void testSetLenient()
           
 
Methods inherited from class org.apache.commons.beanutils.locale.converters.BaseLocaleConverterTestCase
convertInvalid, convertInvalid, convertNull, convertNull, convertValueNoPattern, convertValueNoPattern, convertValueToType, convertValueToType, convertValueWithPattern, convertValueWithPattern, testNothing
 
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
 

Field Detail

localizedDatePattern

protected String localizedDatePattern

localizedDateValue

protected String localizedDateValue

localizedShortDateValue

protected String localizedShortDateValue

defaultDatePattern

protected String defaultDatePattern

defaultDateValue

protected String defaultDateValue

defaultShortDateValue

protected String defaultShortDateValue

validLocalDateSymbols

protected boolean validLocalDateSymbols
Constructor Detail

DateLocaleConverterTestCase

public DateLocaleConverterTestCase(String name)
Method Detail

setUp

public void setUp()
           throws Exception
Set up instance variables required by this test case.

Overrides:
setUp in class BaseLocaleConverterTestCase
Throws:
Exception

tearDown

public void tearDown()
Tear down instance variables required by this test case.

Overrides:
tearDown in class BaseLocaleConverterTestCase

testSetLenient

public void testSetLenient()

testConstructorMain

public void testConstructorMain()
Test Converter(defaultValue, locale, pattern, localizedPattern) constructor


testConstructor_2

public void testConstructor_2()
Test Converter() constructor Uses the default locale, no default value


testConstructor_3

public void testConstructor_3()
Test Converter(locPattern) constructor Uses the default locale, no default value


testConstructor_4

public void testConstructor_4()
Test Converter(Locale) constructor


testConstructor_5

public void testConstructor_5()
Test Converter(Locale, locPattern) constructor


testConstructor_6

public void testConstructor_6()
Test Converter(Locale, pattern) constructor


testConstructor_7

public void testConstructor_7()
Test Converter(Locale, pattern, locPattern) constructor


testConstructor_8

public void testConstructor_8()
Test Converter(defaultValue) constructor


testConstructor_9

public void testConstructor_9()
Test Converter(defaultValue, locPattern) constructor


testInvalidDate

public void testInvalidDate()
Test invalid date


testDateObject

public void testDateObject()
Test java.util.Date


testCalendarObject

public void testCalendarObject()
Test Calendar



Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.