Community
Participate
Working Groups
This test failed result comparison (test case need to be altered... As of now it's failing while order of elements in result xml don't match control xml) EL 2.3.0.v20110414-r9230 JDK 1.5.0_22 ----------- org.eclipse.persistence.testing.jaxb.listofobjects.ns.MapNamespaceTestCases.Java Project Source w/SAX Parsing: MapNamespaceTestCase: testRoundTrip ----------------- Documents are not equal. CONTROL: <?xml version="1.0" encoding="UTF-8"?><mapObject xmlns="http://www.example.org"><map><entry><key xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">One</key><value xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:int">1</value></entry><entry><key xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Two</key><value xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:int">2</value></entry></map></mapObject> TEST: <?xml version="1.0" encoding="UTF-8"?><mapObject xmlns="http://www.example.org"><map><entry><key xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Two</key><value xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:int">2</value></entry><entry><key xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">One</key><value xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:int">1</value></entry></map></mapObject> junit.framework.AssertionFailedError: Documents are not equal. CONTROL: One1Two2 TEST: Two2One1 at org.eclipse.persistence.testing.oxm.XMLTestCase.assertXMLIdentical(XMLTestCase.java:45) at org.eclipse.persistence.testing.oxm.mappings.XMLMappingTestCases.objectToXMLDocumentTest(XMLMappingTestCases.java:286) at org.eclipse.persistence.testing.jaxb.JAXBTestCases.objectToXMLStringWriter(JAXBTestCases.java:275) at org.eclipse.persistence.testing.jaxb.JAXBTestCases.testRoundTrip(JAXBTestCases.java:185)
Created attachment 193381 [details] Patch
Fixed -- changed test object's hashmap to only contain one element, so that unpredictable element ordering does not break the test.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink