Class AssertFile

java.lang.Object
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 Details

    • AssertFile

      public AssertFile()
  • Method Details

    • assertFileEquals

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

      public static void assertFileEquals(org.springframework.core.io.Resource expected, org.springframework.core.io.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, org.springframework.core.io.Resource resource) throws Exception
      Throws:
      Exception