Skip to content

[BUG] DICOMSerializerTest and NCPDPSerializerTest fail on Windows #601

Done

Description

@MichaelLeeHobbs

Describe the bug

Eleven server unit tests fail on Windows because they compare XML with CRLF line endings against fixtures checked out with LF. It failed the same way in both runs I made, one on main at 8e5e63d and one with #600 applied. #600 doesn't touch these classes.

  • DICOMSerializerTest.toXml, all 7 parameters
  • NCPDPSerializerTest: test51RequestToXml, test51ResponseToXml, testD0RequestToXml, testD0ResponseToXml

To Reproduce

  1. On Windows, check out 8e5e63d with core.autocrlf=false.
  2. Run gradlew.bat :server:test --tests "*DICOMSerializerTest" --tests "*NCPDPSerializerTest" -PdisableSigning=true.

Expected behavior

Both classes pass on Windows.

Actual behavior

20 tests run and 11 fail with org.junit.ComparisonFailure. In the failures I looked at, the strings first differ at the first line break. From the test report for NCPDPSerializerTest, where 
 is a carriage return:

expected: ...51_Billing_Response>[&#10;    <TransactionHeaderResponse>&#10;
but was:  ...51_Billing_Response>[&#13;&#10;    <TransactionHeaderResponse>&#13;&#10;

The tests make an exact string comparison:

The fixtures are the server/tests/dicom/*-instance.xml and server/tests/test-ncpdp-*-output.xml files. Git reports them as LF in the index and in the working tree (git ls-files --eol), and .gitattributes has no rule for them.

Environment

  • OS: Windows 10
  • Java: Zulu 17 with JavaFX (17.0.20)
  • Commit: 8e5e63d

Workaround(s)

Not tested. Checking out with core.autocrlf=true would give the fixtures CRLF endings, so these tests may pass that way.

Additional context

The full :server:test task fails on Windows for this reason, so a contributor there can't tell a real failure from these 11 without rerunning them on main. Comparing with line endings normalized would fix both classes.

Activity

  1. added a commit that references this issue on Nov 25, 2026
    89c8f99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions