Package org.nuxeo.runtime.test
Class Assert
- java.lang.Object
-
- org.nuxeo.runtime.test.Assert
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Assert()
Protect constructor since it is a static only class
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertFilesContentEquals(String expected, String actual)
Asserts that two strings are equal even if their EOL are different.static void
assertFilesContentEquals(String message, String expected, String actual)
Asserts that two strings are equal even if their EOL are different.
-
-
-
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, anAssertionError
is thrown with the given message. Ifexpected
andactual
arenull
, they are considered equal.- Parameters:
expected
- expected String with Windows or Unix like EOLactual
- 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, anAssertionError
is thrown with the given message. Ifexpected
andactual
arenull
, they are considered equal.- Parameters:
message
- the identifying message for theAssertionError
(null
okay)expected
- expected String with Windows or Unix like EOLactual
- actual String with Windows or Unix like EOL- See Also:
FileUtils.areFilesContentEquals(String, String)
-
-