Package org.springframework.batch.test
Class AssertFile
java.lang.Object
org.springframework.batch.test.AssertFile
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0 (for removal in 5.2) in favor of test utilities provided by
modern test libraries like JUnit 5, AssertJ, etc.
This class can be used to assert that two files are the same.
- Since:
- 2.0
- Author:
- Dan Garrette, Glenn Renfro, Mahmoud Ben Hassine
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertFileEquals
(File expected, File actual) Deprecated, for removal: This API element is subject to removal in a future version.static void
assertFileEquals
(org.springframework.core.io.Resource expected, org.springframework.core.io.Resource actual) Deprecated, for removal: This API element is subject to removal in a future version.static void
assertLineCount
(int expectedLineCount, File file) Deprecated, for removal: This API element is subject to removal in a future version.static void
assertLineCount
(int expectedLineCount, org.springframework.core.io.Resource resource) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
AssertFile
public AssertFile()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
assertFileEquals
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
assertFileEquals
public static void assertFileEquals(org.springframework.core.io.Resource expected, org.springframework.core.io.Resource actual) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
assertLineCount
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
assertLineCount
public static void assertLineCount(int expectedLineCount, org.springframework.core.io.Resource resource) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-