Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0-alpha-11
-
Fix Version/s: 1.0-alpha-11
-
Component/s: modello-plugin-xpp3
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
We need to specify a default Locale to verify the date format.
Here is the full surefire report:
------------------------------------------------------------------------------- Test set: org.codehaus.modello.generator.xml.xpp3.Xpp3GeneratorTest ------------------------------------------------------------------------------- Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.626 sec <<< FAILURE! xpp3(org.codehaus.modello.generator.xml.xpp3.Xpp3GeneratorTest) Time elapsed: 3.564 sec <<< FAILURE! junit.framework.ComparisonFailure: expected:<...Friday, 6 January 2006 12:00:00 AM...> but was:<...vendredi 6 janvier 2006 0 h 00...> at junit.framework.Assert.assertEquals(Assert.java:81) at junit.framework.Assert.assertEquals(Assert.java:87) at org.codehaus.modello.generator.xml.xpp3.Xpp3Verifier.verifyWriter(Xpp3Verifier.java:245) at org.codehaus.modello.generator.xml.xpp3.Xpp3Verifier.verify(Xpp3Verifier.java:62) 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:585) at org.codehaus.modello.AbstractModelloGeneratorTest.verify(AbstractModelloGeneratorTest.java:200) at org.codehaus.modello.generator.xml.xpp3.Xpp3GeneratorTest.testXpp3Generator(Xpp3GeneratorTest.java:126) 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:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) 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:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) at org.apache.maven.surefire.Surefire.run(Surefire.java:129) 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:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:781)
Issue Links
- is depended upon by
-
MAVEN-1755
Backward Incompability : Usage of xml entities in the POM doesn't work in maven 1.1 beta 1 & 2
-
- is related to
-
MODELLO-57
Dom4jGeneratorTest failed for date format on french system
-
Patch provided to correct this.
Date is always written in US Locale, and expected.xml file has been updated to comply with this Locale.