Class AssertFile

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

@Deprecated(since="5.0", forRemoval=true) public abstract class AssertFile extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0 (for removal in 5.2) in favor of test utilities provided by modern test libraries like JUnit 5, AssertJ, etc.
This class can be used to assert that two files are the same.
Since:
2.0
Author:
Dan Garrette, Glenn Renfro, Mahmoud Ben Hassine
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    assertFileEquals(File expected, File actual)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    assertFileEquals(org.springframework.core.io.Resource expected, org.springframework.core.io.Resource actual)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    assertLineCount(int expectedLineCount, File file)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    assertLineCount(int expectedLineCount, org.springframework.core.io.Resource resource)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssertFile

      public AssertFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • assertFileEquals

      public static void assertFileEquals(File expected, File actual) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • assertFileEquals

      public static void assertFileEquals(org.springframework.core.io.Resource expected, org.springframework.core.io.Resource actual) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • assertLineCount

      public static void assertLineCount(int expectedLineCount, File file) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • assertLineCount

      public static void assertLineCount(int expectedLineCount, org.springframework.core.io.Resource resource) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception