Package org.nuxeo.runtime.test
Class Assert
- java.lang.Object
-
- org.nuxeo.runtime.test.Assert
-
public class Assert extends Object
Extension toAssert- Since:
- 6.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssert()Protect constructor since it is a static only class
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
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, 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:
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, 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:
FileUtils.areFilesContentEquals(String, String)
-
-