|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
org.freehep.util.Assert
public class Assert
Additional assert methods to the junit.framework.Assert class.
Constructor Summary | |
---|---|
protected |
Assert()
static class only |
Method Summary | |
---|---|
static void |
assertEquals(File expected,
File actual,
boolean isBinary)
Compares two files. |
static void |
assertEquals(InputStream expected,
InputStream actual,
boolean isBinary,
String filename)
Compares two streams. |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Assert()
Method Detail |
---|
public static void assertEquals(File expected, File actual, boolean isBinary) throws FileNotFoundException, IOException
expected
- reference fileactual
- file to be testedisBinary
- when true will do byte-by-byte comparison rather than line by line.
FileNotFoundException
- if one of the files cannot be found.
IOException
- if one of the files cannot read.
junit.framework.AssertionFailedError
- if the files are not equal.public static void assertEquals(InputStream expected, InputStream actual, boolean isBinary, String filename) throws IOException
expected
- reference streamactual
- stream to be testedfilename
- an prefix for the error message (normally filename associated with the actual stream)isBinary
- when true will do byte-by-byte comparison rather than line by line (Reader).
IOException
- if one of the streams cannot read.
junit.framework.AssertionFailedError
- if the streams are not equal.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |