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