org.apache.log4j.pattern
Class CachedDateFormatTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.log4j.pattern.CachedDateFormatTest
All Implemented Interfaces:
junit.framework.Test

public final class CachedDateFormatTest
extends junit.framework.TestCase

Unit test AbsoluteTimeDateFormat.

Author:
Curt Arnold

Constructor Summary
CachedDateFormatTest(java.lang.String name)
          Test constructor
 
Method Summary
 void test1()
          Test multiple calls in close intervals.
 void test10()
          Test when millisecond position moves but length remains constant.
 void test11()
          Test that tests if caching is skipped if only "SS" is specified.
 void test12()
          Check pattern location for ISO8601
 void test13()
          Check pattern location for DATE
 void test14()
          Check pattern location for ABSOLUTE
 void test15()
          Check pattern location for single S
 void test16()
          Check pattern location for single SS
 void test17()
          Check caching when multiple SSS appear in pattern
 void test2()
          Check for interaction between caches.
 void test3()
          Test multiple calls in close intervals prior to 1 Jan 1970.
 void test4()
           
 void test5()
           
 void test6()
          Checks that getNumberFormat does not return null.
 void test8()
          Set time zone on cached and check that it is effective.
 void test9()
          Test of caching when less than three millisecond digits are specified.
static junit.framework.Test xsuite()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

CachedDateFormatTest

public CachedDateFormatTest(java.lang.String name)
Test constructor

Parameters:
name - String test name
Method Detail

test1

public void test1()
Test multiple calls in close intervals.


test2

public void test2()
Check for interaction between caches.


test3

public void test3()
Test multiple calls in close intervals prior to 1 Jan 1970.


test4

public void test4()

test5

public void test5()

test6

public void test6()
Checks that getNumberFormat does not return null.


test8

public void test8()
Set time zone on cached and check that it is effective.


test9

public void test9()
Test of caching when less than three millisecond digits are specified.


test10

public void test10()
Test when millisecond position moves but length remains constant.


test11

public void test11()
Test that tests if caching is skipped if only "SS" is specified.


test12

public void test12()
Check pattern location for ISO8601


test13

public void test13()
Check pattern location for DATE


test14

public void test14()
Check pattern location for ABSOLUTE


test15

public void test15()
Check pattern location for single S


test16

public void test16()
Check pattern location for single SS


test17

public void test17()
Check caching when multiple SSS appear in pattern


xsuite

public static junit.framework.Test xsuite()


Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0

Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.