Skip to content

Fix RecordFieldExtractorTests #4171

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

Merged
merged 1 commit into from
Aug 2, 2022
Merged

Fix RecordFieldExtractorTests #4171

merged 1 commit into from
Aug 2, 2022

Conversation

hpoettker
Copy link
Contributor

The RecordFieldExtractorTests in Spring Batch Infrastructure have been failing since the migration to JUnit 5. Two assertThrows are missing or misplaced, respectively.

@fmbenhassine
Copy link
Contributor

The build passed on our internal CI infrastructure since the migration to JUnit 5. I don't see what change in this PR would make it pass instead of failing. But the changes make sense to me, they make tests more consistent with the rest of the suite. Thank you for the PR anyway.

@fmbenhassine fmbenhassine added this to the 5.0.0-M5 milestone Aug 2, 2022
@fmbenhassine fmbenhassine merged commit f14d57f into spring-projects:main Aug 2, 2022
@hpoettker hpoettker deleted the record-field-extractor-tests branch August 2, 2022 15:33
@hpoettker
Copy link
Contributor Author

I am surprised that it passed in the CI.

It did not when I executed package locally. And this is also expected: The test testSetupWithNonRecordTargetType tests that an IllegalArgumentException is thrown. Before this commit the test only contained the throwing statement without any assertion or catch.

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

Successfully merging this pull request may close these issues.

2 participants