Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335462

Summary: in test-oxm, XMLMarshalTestCase: testMarshalObjectToSAXResult failed with xmlparser
Product: z_Archived Reporter: Praba Vijayaratnam <prabaharan.vijayaratnam>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david.twelves
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Proposed patch.
none
Proposed patch. none

Description Praba Vijayaratnam CLA 2011-01-26 11:05:03 EST
Ant target: test-oxm
Java Development Kit: jdk16
Ant parameters:
-Dxml.platform=org.eclipse.persistence.platform.xml.xdk.XDKPlatform
-Dxml.parser.jar=xmlparserv2.jar


Java Project Source w/Doc Pres: XMLMarshalTestCase: testMarshalObjectToSAXResult

org.eclipse.persistence.testing.oxm.docpres.xmlmarshaller.XMLMarshalTestCases.Java Project Source w/Doc Pres: XMLMarshalTestCase: testMarshalObjectToSAXResult

Documents are not equal. CONTROL: <?xml version = '1.0' encoding = 'utf-8'?> <employee> <id>123</id> <info> <email-address> <user-id>jane.doe</user-id> <domain>example.com</domain> </email-address> </info> </employee> TEST: <?xml version = '1.0' encoding = 'utf-8'?> <employee xmlns=""> <id>123</id> <info> <email-address> <user-id>jane.doe</user-id> <domain>example.com</domain> </email-address> </info> </employee> 

junit.framework.AssertionFailedError: Documents are not equal.
CONTROL:
123
jane.doe
example.com

TEST:
123
jane.doe
example.com

at org.eclipse.persistence.testing.oxm.XMLTestCase.assertXMLIdentical(XMLTestCase.java:45)
at org.eclipse.persistence.testing.oxm.xmlmarshaller.XMLMarshalTestCases.testMarshalObjectToSAXResult(XMLMarshalTestCases.java:318)
Comment 1 Rick Barkhouse CLA 2011-02-18 15:18:57 EST
Created attachment 189314 [details]
Proposed patch.
Comment 2 Rick Barkhouse CLA 2011-02-18 15:37:21 EST
Created attachment 189319 [details]
Proposed patch.
Comment 3 Rick Barkhouse CLA 2011-02-18 16:03:38 EST
Fixed, reviewed by bdoughan.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:24:43 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink