Class CXmlDateUtilTest
- java.lang.Object
-
- de.hybris.platform.b2b.punchout.util.CXmlDateUtilTest
-
@UnitTest public class CXmlDateUtilTest extends java.lang.Object
Test cases forCXmlDateUtil.
-
-
Constructor Summary
Constructors Constructor Description CXmlDateUtilTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()Sets a pre-defined time zone for theCXmlDateUtil.voidtestFormatDate()Tests that the output of a formatted date is the expected ISO 8601 string.voidtestParseIncorrectString()Tests that parsing a wrong date string not in accordance with the ISO 8601 format fails.voidtestParseStringHappyCase()Tests that parsing a date is correct when it is in the correct ISO 8601 format.
-
-
-
Method Detail
-
setUp
public void setUp()
Sets a pre-defined time zone for theCXmlDateUtil.
-
testParseStringHappyCase
public void testParseStringHappyCase() throws java.lang.ExceptionTests 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.ExceptionTests 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.ExceptionTests that the output of a formatted date is the expected ISO 8601 string.- Throws:
java.lang.Exception
-
-