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

Deprecate AssertFile #4181

Closed
fmbenhassine opened this issue Aug 24, 2022 · 0 comments
Closed

Deprecate AssertFile #4181

fmbenhassine opened this issue Aug 24, 2022 · 0 comments

Comments

@fmbenhassine
Copy link
Contributor

org.springframework.batch.test.AssertFile provides two static methods to compare two files and assert on a file line count. Those two utilities can be found in modern test tools like JUnit 5 (Assertions.assertLinesMatch()) or AssertJ (Assertions.assertThat(actualFile).hasSameTextualContentAs(expectedFile);).

The goal of spring-batch-test module is to provide utilities that are specific to Spring Batch and not general assertion utilities on files or databases. AssertFile should be deprecated in 5.0 and removed in 5.2 in favor of modern test libraries.

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

No branches or pull requests

1 participant