Class 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

      Constructors 
      ConstructorDescription
      AssertFile() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      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) 
      • 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