类 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.- 从以下版本开始:
- 2.0
- 作者:
- Dan Garrette
构造器概要
构造器 构造器 说明 AssertFile()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static voidassertFileEquals(java.io.File expected, java.io.File actual)static voidassertFileEquals(org.springframework.core.io.Resource expected, org.springframework.core.io.Resource actual)static voidassertLineCount(int expectedLineCount, java.io.File file)static voidassertLineCount(int expectedLineCount, org.springframework.core.io.Resource resource)
构造器详细资料
AssertFile
public AssertFile()
方法详细资料
assertFileEquals
public static void assertFileEquals(java.io.File expected, java.io.File actual) throws java.lang.Exception
- 抛出:
java.lang.Exception
assertFileEquals
public static void assertFileEquals(org.springframework.core.io.Resource expected, org.springframework.core.io.Resource actual) throws java.lang.Exception
- 抛出:
java.lang.Exception
assertLineCount
public static void assertLineCount(int expectedLineCount, java.io.File file) throws java.lang.Exception
- 抛出:
java.lang.Exception
assertLineCount
public static void assertLineCount(int expectedLineCount, org.springframework.core.io.Resource resource) throws java.lang.Exception
- 抛出:
java.lang.Exception