Class CXmlDateUtilTest

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setUp()
      Sets a pre-defined time zone for the CXmlDateUtil.
      void testFormatDate()
      Tests that the output of a formatted date is the expected ISO 8601 string.
      void testParseIncorrectString()
      Tests that parsing a wrong date string not in accordance with the ISO 8601 format fails.
      void testParseStringHappyCase()
      Tests that parsing a date is correct when it is in the correct ISO 8601 format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CXmlDateUtilTest

        public CXmlDateUtilTest()
    • Method Detail

      • setUp

        public void setUp()
        Sets a pre-defined time zone for the CXmlDateUtil.
      • testParseStringHappyCase

        public void testParseStringHappyCase()
                                      throws java.lang.Exception
        Tests that parsing a date is correct when it is in the correct ISO 8601 format.
        Throws:
        java.lang.Exception
      • testParseIncorrectString

        public void testParseIncorrectString()
                                      throws java.lang.Exception
        Tests that parsing a wrong date string not in accordance with the ISO 8601 format fails.
        Throws:
        java.lang.Exception
      • testFormatDate

        public void testFormatDate()
                            throws java.lang.Exception
        Tests that the output of a formatted date is the expected ISO 8601 string.
        Throws:
        java.lang.Exception