Skip to content

Ignore line endings in DICOM and NCPDP serializer tests - #602

Merged
tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
MichaelLeeHobbs:fix/serializer-tests-windows-line-endings
Nov 25, 2026
Merged

tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
MichaelLeeHobbs:fix/serializer-tests-windows-line-endings

Conversation

@MichaelLeeHobbs

Copy link
Copy Markdown
Contributor

Closes #601.

DICOMSerializerTest and NCPDPSerializerTest compare pretty-printed XML, which uses the platform's line endings, with fixtures stored as LF. 11 tests fail on Windows.

Change

Both sides of those five assertions now go through the existing TestUtil.normalizeLineEndings(), as EDISerializerTest and HL7SerializerTest already do. Test code only.

How to verify

On Windows with core.autocrlf=false:

gradlew.bat :server:test --tests "*DICOMSerializerTest" --tests "*NCPDPSerializerTest" -PdisableSigning=true

On Windows 10 with Zulu 17, 11 of 20 tests failed at 8e5e63d and all 20 pass with this change. The full :server:test task passes too.

🤖 Generated with Claude Code

The XML output uses the platform's line endings while the fixtures are
stored with LF, so 11 tests failed on Windows (fixes OpenIntegrationEngine#601).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Michael Hobbs <michael.lee.hobbs@gmail.com>
@MichaelLeeHobbs
MichaelLeeHobbs marked this pull request as ready for review November 25, 2026 03:56

@mgaffigan mgaffigan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this highlights a windows gap in CI, too.

@NicoPiel NicoPiel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@github-actions

Copy link
Copy Markdown

Test Results

  146 files  ±0    146 suites  ±0   5m 2s ⏱️ +55s
  991 tests ±0    991 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 309 runs  ±0  1 303 ✅ ±0  6 💤 ±0  0 ❌ ±0 

Results for commit 89c8f99. ± Comparison against base commit 8e5e63d.

@tonygermano
tonygermano merged commit 89c8f99 into OpenIntegrationEngine:main Nov 25, 2026
12 checks passed
@tonygermano tonygermano added this to the 4.8.0 milestone Nov 25, 2026
@mgaffigan mgaffigan mentioned this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants