Affected Module: camunda-spin-dataformat-xml-dom
Validation file org/camunda/spin/xml/validation_example.xml contains order-details date value for time zone GMT+02:00:
<order-details> <ns2:date>2015-04-04T00:00:00+02:00</ns2:date>
Running tests in not GMT+02:00 time zone causes following tests to be failed:
XmlDomMapJavaToXmlGroovyTest>XmlDomMapJavaToXmlScriptTest.shouldMapJavaToXml:35 expected:<...015-04-04T00:00:00+0[2]:00</ns2:date> ...> but was:<...015-04-04T00:00:00+0[3]:00</ns2:date> ...> XmlDomMapJavaToXmlPythonTest>XmlDomMapJavaToXmlScriptTest.shouldMapJavaToXml:35 expected:<...015-04-04T00:00:00+0[2]:00</ns2:date> ...> but was:<...015-04-04T00:00:00+0[3]:00</ns2:date> ...> XmlDomMapJavaToXmlRubyTest>XmlDomMapJavaToXmlScriptTest.shouldMapJavaToXml:35 expected:<...015-04-04T00:00:00+0[2]:00</ns2:date> ...> but was:<...015-04-04T00:00:00+0[3]:00</ns2:date> ...> XmlDomMapJavaToXmlTest.shouldMapJavaToXml:44 expected:<...015-04-04T00:00:00+0[2]:00</ns2:date> ...> but was:<...015-04-04T00:00:00+0[3]:00</ns2:date> ...>
Possible solution could be the usage of -Duser.timezone=GMT+02:00 argument in maven-surefire-plugin in camunda-spin-dataformat-xml-dom/pom.xml file:
<argLine>-XX:PermSize=128m -XX:MaxPermSize=256m -Duser.timezone=GMT+02:00</argLine>
This is the controller panel for Smart Panels app
- duplicates
-
CAM-4012 Several tests failed when running not in GMT+02:00 time zone
- Closed