[DuraSpace JIRA] (DS-4582) UnitTest TestJAXBSchema failed on windows

0 views
Skip to first unread message

Christian Schmiljun (LYRASIS JIRA)

unread,
Jun 2, 2021, 6:06:01 AM6/2/21
to dspace-...@googlegroups.com
Christian Schmiljun created an issue
 
DSpace / Bug DS-4582
UnitTest TestJAXBSchema failed on windows
Issue Type: Bug Bug
Affects Versions: 6.3
Assignee: Unassigned
Attachments: test
Components: REST API, Unit Testing Framework
Created: 02/Jun/21 5:05 AM
Environment: Windows 10
Priority: Minor Minor
Reporter: Christian Schmiljun
Running org.dspace.rest.common.TestJAXBSchema
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.309 sec <<< FAILURE! - in org.dspace.rest.common.TestJAXBSchema
testFullSchema(org.dspace.rest.common.TestJAXBSchema)  Time elapsed: 0.26 sec  <<< FAILURE!
org.junit.ComparisonFailure: 
JAXB schema expected:<..." standalone="yes"?>[
....

For full result see: test

 

The test compares not the XML/XSD representation. It compares the String-representation. This is no good variant for XML comparison. (linefeeds, tabs, spaces,...)

 

The linefeeds in Windows are different from Linux of the schema from JAXBContext.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Christian Schmiljun (LYRASIS JIRA)

unread,
Jun 2, 2021, 7:14:01 AM6/2/21
to dspace-...@googlegroups.com

Anonymous (LYRASIS JIRA)

unread,
Jun 2, 2021, 7:41:01 AM6/2/21
to dspace-...@googlegroups.com
Issue was automatically transitioned when Christian Schmiljun created pull request #3292 in GitHub
 
Change By: Christian Schmiljun
Status: Received Code Review Needed

Christian Schmiljun (LYRASIS JIRA)

unread,
Jun 4, 2021, 3:28:01 AM6/4/21
to dspace-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages