org.springframework.batch.test
Class AssertFile

java.lang.Object
  extended by 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
AssertFile()
           
 
Method Summary
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)
           
 
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(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


Copyright © 2009. All Rights Reserved.