Package org.nuxeo.runtime.test
Class Assert
java.lang.Object
org.nuxeo.runtime.test.Assert
Extension to
Assert
- Since:
- 6.0
-
Constructor Summary
ModifierConstructorDescriptionprotected
Assert()
Protect constructor since it is a static only class -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
Assert
protected Assert()Protect constructor since it is a static only class
-
-
Method Details
-
assertFilesContentEquals
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:
-
assertFilesContentEquals
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:
-