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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertFileEquals(File expected, File actual) static voidassertFileEquals(org.springframework.core.io.Resource expected, org.springframework.core.io.Resource actual) static voidassertLineCount(int expectedLineCount, File file) static voidassertLineCount(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
-