org.springframework.batch.test
Class AssertFile

java.lang.Object
  extended by org.springframework.batch.test.AssertFile

public abstract class AssertFile
extends Object

This class can be used to assert that two files are the same.

Since:
2.0
Author:
Dan Garrette

Constructor Summary
AssertFile()
           
 
Method Summary
static void assertFileEquals(File expected, File actual)
           
static void assertFileEquals(Resource expected, Resource actual)
           
static void assertLineCount(int expectedLineCount, File file)
           
static void assertLineCount(int expectedLineCount, Resource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertFile

public AssertFile()
Method Detail

assertFileEquals

public static void assertFileEquals(File expected,
                                    File actual)
                             throws Exception
Throws:
Exception

assertFileEquals

public static void assertFileEquals(Resource expected,
                                    Resource actual)
                             throws Exception
Throws:
Exception

assertLineCount

public static void assertLineCount(int expectedLineCount,
                                   File file)
                            throws Exception
Throws:
Exception

assertLineCount

public static void assertLineCount(int expectedLineCount,
                                   Resource resource)
                            throws Exception
Throws:
Exception


Copyright © 2013 SpringSource. All Rights Reserved.