|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.commons.beanutils.converters.DateConverterTestBase org.apache.commons.beanutils.converters.DateConverterTestCase
public class DateConverterTestCase
Test Case for the DateConverter class.
Constructor Summary | |
---|---|
DateConverterTestCase(String name)
Construct a new Date test case. |
Method Summary | |
---|---|
protected Class |
getExpectedType()
Return the expected type |
protected DateTimeConverter |
makeConverter()
Create the Converter with no default value. |
protected DateTimeConverter |
makeConverter(Object defaultValue)
Create the Converter with a default value. |
void |
setUp()
Set Up |
static junit.framework.TestSuite |
suite()
Create Test Suite |
void |
tearDown()
Tear Down |
protected Object |
toType(Calendar value)
Convert from a Calendar to the appropriate Date type |
Methods inherited from class org.apache.commons.beanutils.converters.DateConverterTestBase |
---|
getTimeInMillis, invalidConversion, stringConversion, testConvertDate, testConvertNull, testDefaultStringToTypeConvert, testDefaultType, testInvalidType, testLocale, testMultiplePatterns, testPatternDefault, testPatternNoDefault, testPatternNullDefault, testStringConversion, toCalendar, toDate, toSqlDate, toSqlTime, toSqlTimestamp, toType, validConversion |
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 |
---|
public DateConverterTestCase(String name)
name
- Test NameMethod Detail |
---|
public static junit.framework.TestSuite suite()
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
protected DateTimeConverter makeConverter()
makeConverter
in class DateConverterTestBase
protected DateTimeConverter makeConverter(Object defaultValue)
makeConverter
in class DateConverterTestBase
defaultValue
- The default value
protected Class getExpectedType()
getExpectedType
in class DateConverterTestBase
protected Object toType(Calendar value)
toType
in class DateConverterTestBase
value
- The Calendar value to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |