Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-4012

Several tests failed when running not in GMT+02:00 time zone

    XMLWordPrintable

Details

    Description

      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>
      

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                sebastian.menski Sebastian Menski
                Alex Alexander Tyatenkov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce