Class Assert


  • public class Assert
    extends Object
    Extension to Assert
    Since:
    6.0
    • Constructor Detail

      • Assert

        protected Assert()
        Protect constructor since it is a static only class
    • Method Detail

      • assertFilesContentEquals

        public static void assertFilesContentEquals​(String expected,
                                                    String actual)
        Asserts that two strings are equal even if their EOL are different. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
        Parameters:
        expected - expected String with Windows or Unix like EOL
        actual - actual String with Windows or Unix like EOL
        See Also:
        FileUtils.areFilesContentEquals(String, String)
      • assertFilesContentEquals

        public static void assertFilesContentEquals​(String message,
                                                    String expected,
                                                    String actual)
        Asserts that two strings are equal even if their EOL are different. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
        Parameters:
        message - the identifying message for the AssertionError ( null okay)
        expected - expected String with Windows or Unix like EOL
        actual - actual String with Windows or Unix like EOL
        See Also:
        FileUtils.areFilesContentEquals(String, String)