Class CXmlDateUtilTest
java.lang.Object
de.hybris.platform.b2b.punchout.util.CXmlDateUtilTest
Test cases for
CXmlDateUtil.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Sets a pre-defined time zone for theCXmlDateUtil.voidTests that the output of a formatted date is the expected ISO 8601 string.voidvoidTests that parsing a wrong date string not in accordance with the ISO 8601 format fails.voidTests that parsing a date is correct when it is in the correct ISO 8601 format.
-
Constructor Details
-
CXmlDateUtilTest
public CXmlDateUtilTest()
-
-
Method Details
-
setUp
public void setUp()Sets a pre-defined time zone for theCXmlDateUtil. -
testParseStringHappyCase
Tests that parsing a date is correct when it is in the correct ISO 8601 format.- Throws:
Exception
-
testParseIncorrectString
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()
-