Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jackson uses platform line endings. #1363

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arthur-noseda
Copy link

When building the project on Windows, I encountered an issue with one of Jackson2HalFormsIntegrationTest's methods. It seems Jackson is using the underlying platform's line ending when serializing. The expected is not met on Windows (nor should it on Mac).

@gregturn gregturn changed the base branch from master to main April 7, 2021 18:20
Copy link

@cuspymd cuspymd left a comment

Choose a reason for hiding this comment

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

It makes sense.

@gregturn
Copy link
Contributor

We HEAVILY test against Jackson. How is the ONLY place this manifests?

@ParkerM
Copy link

ParkerM commented Sep 23, 2022

We HEAVILY test against Jackson. How is the ONLY place this manifests?

It looks like this is the only test that explicitly declares a JSON string containing line separators. If formatting is important for that assertion then it could use AssertJ's conventional assertThat(serialized).isEqualToNormalizingNewlines(expected); to fix the build on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants