Skip to content

Improve JavaFileAssert#hasSameMapperContent to include File Information for the diff#4063

Merged
filiphr merged 1 commit into
mapstruct:mainfrom
filiphr:improve-java-file-assert
Jun 5, 2026
Merged

Improve JavaFileAssert#hasSameMapperContent to include File Information for the diff#4063
filiphr merged 1 commit into
mapstruct:mainfrom
filiphr:improve-java-file-assert

Conversation

@filiphr

@filiphr filiphr commented Jun 5, 2026

Copy link
Copy Markdown
Member

The FileInfo from Open Test Alliance for the JVM allows the IDE to display a diff between 2 files nicely in the UI. This makes it easier to compare failing fixtures and immediately copy what you want to the fixture. Also improve the loading of the expected fixture from the resource folder instead of the compilation folder

Before:

image

After:

image

The new part is the "" which takes you to:

image

…on for the diff

The FileInfo from Open Test Alliance for the JVM allows the IDE
to display a diff between 2 files nicely in the UI.
This makes it easier to compare failing fixtures and immediately copy what you want to the fixture.
Also improve the loading of the expected fixture from the resource folder instead of the
compilation folder
@filiphr filiphr merged commit cbd5aa8 into mapstruct:main Jun 5, 2026
9 checks passed
@filiphr filiphr deleted the improve-java-file-assert branch June 5, 2026 19:28
@filiphr filiphr added the test label Jun 5, 2026
@filiphr filiphr added this to the 1.7.0.Beta2 milestone Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant