Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335462 - in test-oxm, XMLMarshalTestCase: testMarshalObjectToSAXResult failed with xmlparser
Summary: in test-oxm, XMLMarshalTestCase: testMarshalObjectToSAXResult failed with xml...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 11:05 EST by Praba Vijayaratnam CLA
Modified: 2022-06-09 10:24 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch. (1.39 KB, patch)
2011-02-18 15:18 EST, Rick Barkhouse CLA
no flags Details | Diff
Proposed patch. (1.43 KB, patch)
2011-02-18 15:37 EST, Rick Barkhouse CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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