Package org.springframework.batch.test
Class AssertFile
java.lang.Object
org.springframework.batch.test.AssertFile
This class can be used to assert that two files are the same.
- Since:
- 2.0
- Author:
- Dan Garrette
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertFileEquals
(File expected, File actual) static void
assertFileEquals
(org.springframework.core.io.Resource expected, org.springframework.core.io.Resource actual) static void
assertLineCount
(int expectedLineCount, File file) static void
assertLineCount
(int expectedLineCount, org.springframework.core.io.Resource resource)
-
Constructor Details
-
AssertFile
public AssertFile()
-
-
Method Details
-
assertFileEquals
- Throws:
Exception
-
assertFileEquals
public static void assertFileEquals(org.springframework.core.io.Resource expected, org.springframework.core.io.Resource actual) throws Exception - Throws:
Exception
-
assertLineCount
- Throws:
Exception
-
assertLineCount
public static void assertLineCount(int expectedLineCount, org.springframework.core.io.Resource resource) throws Exception - Throws:
Exception
-