|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junitx.framework.FileAssert
A set of assert methods specially targetted to asserting files.
Method Summary | |
static void |
assertBinaryEquals(java.io.File expected,
java.io.File actual)
Asserts that two binary files are equal. |
static void |
assertBinaryEquals(java.lang.String message,
java.io.File expected,
java.io.File actual)
Asserts that two binary files are equal. |
static void |
assertEquals(java.io.File expected,
java.io.File actual)
Asserts that two files are equal. |
static void |
assertEquals(java.lang.String message,
java.io.File expected,
java.io.File actual)
Asserts that two files are equal. |
protected static void |
assertEquals(java.lang.String message,
java.io.Reader expected,
java.io.Reader actual)
Testing only Asserts that two readers are equal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void assertEquals(java.lang.String message, java.io.File expected, java.io.File actual)
Note: This assertion method rely on the standard junit.framework.Assert(String expected, String actual) method to compare the lines of the files. JUnit > 3.8 provides a nicer way to display differences between two strings but since only lines are compared (and not entire paragraphs) you can still use JUnit 3.7.
public static void assertEquals(java.io.File expected, java.io.File actual)
protected static void assertEquals(java.lang.String message, java.io.Reader expected, java.io.Reader actual)
public static void assertBinaryEquals(java.io.File expected, java.io.File actual)
public static void assertBinaryEquals(java.lang.String message, java.io.File expected, java.io.File actual)
|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |