Class CXmlDateUtilTest

java.lang.Object
de.hybris.platform.b2b.punchout.util.CXmlDateUtilTest

@UnitTest public class CXmlDateUtilTest extends Object
Test cases for CXmlDateUtil.
  • Constructor Details

    • CXmlDateUtilTest

      public CXmlDateUtilTest()
  • Method Details

    • setUp

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

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

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

      public void testFormatDate()
      Tests that the output of a formatted date is the expected ISO 8601 string.
    • testFormatDateWithZonedDateTime

      public void testFormatDateWithZonedDateTime()