Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-645

Test not passing on latest Isis SNAPSHOT when executed with Spanish locale

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: core-1.4.0
    • Fix Version/s: core-1.4.0
    • Component/s: Isis Core
    • Labels:
      None

      Description

      The following test is not passing when executed on a machine with a Spanish locale, breaking the Isis Maven build.

      Tests in error:
      test(org.apache.isis.applib.services.xmlsnapshot.XmlSnapshotServiceAbstractTest): Invalid format: "01-Apr-2013" is malformed at "Apr-2013"

      Tests run: 182, Failures: 0, Errors: 1, Skipped: 0

      additional info:

      Hi, Dan and Jeroen.

      There's a test that it's not successfully executed on the latest ISIS snapshot. Seems there are problems related to user locale (my machine's locale is a Spanish one).

      I've some some recent commits related to Joda.

      The log message is at bottom of this message.

      I've just created ISIS-645 for this.

      HTH,

      Oscar

      -------------------------------------------------------------------------------
      Test set: org.apache.isis.applib.services.xmlsnapshot.XmlSnapshotServiceAbstractTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.209 sec <<< FAILURE!
      test(org.apache.isis.applib.services.xmlsnapshot.XmlSnapshotServiceAbstractTest) Time elapsed: 0.208 sec <<< ERROR!
      java.lang.IllegalArgumentException: Invalid format: "01-Apr-2013" is malformed at "Apr-2013"
      at org.joda.time.format.DateTimeFormatter.parseLocalDateTime(DateTimeFormatter.java:828)
      at org.joda.time.format.DateTimeFormatter.parseLocalDate(DateTimeFormatter.java:772)
      at org.apache.isis.applib.services.xmlsnapshot.XmlSnapshotServiceAbstract.getChildElementValue(XmlSnapshotServiceAbstract.java:75)
      at org.apache.isis.applib.services.xmlsnapshot.XmlSnapshotServiceAbstractTest.test(XmlSnapshotServiceAbstractTest.java:56)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
      at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
      at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Daniel Keir Haywood
              Reporter:
              oscarbou Óscar Bou
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: