org.apache.ws.commons.util.test
Class XsDateTimeFormatTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.ws.commons.util.test.XsDateTimeFormatTest
All Implemented Interfaces:
junit.framework.Test

public class XsDateTimeFormatTest
extends junit.framework.TestCase

Test case for the various instances of Format, which are being used to parse special types like xs:dateTime.

Author:
Jochen Wiedmann

Constructor Summary
XsDateTimeFormatTest(java.lang.String pName)
          Creates a new test with the given name.
 
Method Summary
protected  void assertEqualDate(java.util.Calendar pExpect, java.util.Calendar pGot)
           
protected  void assertEqualTime(java.util.Calendar pExpect, java.util.Calendar pGot)
           
 void testFormatDate()
          Test for org.apache.ws.jaxme.xs.util.XsDateFormat#format(Object, StringBuffer, java.text.FieldPosition).
 void testFormatDateTime()
          Test for org.apache.ws.jaxme.xs.util.XsDateTimeFormat#format(Object, StringBuffer, java.text.FieldPosition).
 void testFormatTime()
          Test for org.apache.ws.jaxme.xs.util.XsTimeFormat#format(Object, StringBuffer, java.text.FieldPosition).
 void testParseDate()
          Test for org.apache.ws.jaxme.xs.util.XsDateFormat#parseObject(String, java.text.ParsePosition).
 void testParseDateTime()
          Test for org.apache.ws.jaxme.xs.util.XsDateTimeFormat#parseObject(String, java.text.ParsePosition).
 void testParseTime()
          Test for org.apache.ws.jaxme.xs.util.XsTimeFormat#parseObject(String, java.text.ParsePosition).
 void testZeroSuffix()
          Tests, whether e zero as suffix matters in milliseconds.
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XsDateTimeFormatTest

public XsDateTimeFormatTest(java.lang.String pName)
Creates a new test with the given name.

Method Detail

testFormatDateTime

public void testFormatDateTime()
Test for org.apache.ws.jaxme.xs.util.XsDateTimeFormat#format(Object, StringBuffer, java.text.FieldPosition).


testParseDateTime

public void testParseDateTime()
                       throws java.text.ParseException
Test for org.apache.ws.jaxme.xs.util.XsDateTimeFormat#parseObject(String, java.text.ParsePosition).

Throws:
java.text.ParseException

testFormatDate

public void testFormatDate()
Test for org.apache.ws.jaxme.xs.util.XsDateFormat#format(Object, StringBuffer, java.text.FieldPosition).


assertEqualDate

protected void assertEqualDate(java.util.Calendar pExpect,
                               java.util.Calendar pGot)

assertEqualTime

protected void assertEqualTime(java.util.Calendar pExpect,
                               java.util.Calendar pGot)

testParseDate

public void testParseDate()
                   throws java.text.ParseException
Test for org.apache.ws.jaxme.xs.util.XsDateFormat#parseObject(String, java.text.ParsePosition).

Throws:
java.text.ParseException

testFormatTime

public void testFormatTime()
Test for org.apache.ws.jaxme.xs.util.XsTimeFormat#format(Object, StringBuffer, java.text.FieldPosition).


testParseTime

public void testParseTime()
                   throws java.text.ParseException
Test for org.apache.ws.jaxme.xs.util.XsTimeFormat#parseObject(String, java.text.ParsePosition).

Throws:
java.text.ParseException

testZeroSuffix

public void testZeroSuffix()
                    throws java.lang.Exception
Tests, whether e zero as suffix matters in milliseconds.

Throws:
java.lang.Exception


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.