Package org.nuxeo.runtime.test
Class Assert
java.lang.Object
org.nuxeo.runtime.test.Assert
Extension to
Assert- Since:
- 6.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAssert()Protect constructor since it is a static only class -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertFilesContentEquals(String expected, String actual) Asserts that two strings are equal even if their EOL are different.static voidassertFilesContentEquals(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, anAssertionErroris thrown with the given message. Ifexpectedandactualarenull, 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, anAssertionErroris thrown with the given message. Ifexpectedandactualarenull, they are considered equal.- Parameters:
message- the identifying message for theAssertionError(nullokay)expected- expected String with Windows or Unix like EOLactual- actual String with Windows or Unix like EOL- See Also:
-