|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.junit.IOTester
public final class IOTester
With the IOTester you can assert if two files have equals content or
if two directories have the same structure with equal files.
Note: This test is not yet tested with binary files.
| Method Summary | |
|---|---|
static void |
assertContentEquals(BufferedReader r1,
BufferedReader r2)
Asserts that the content of two Readers are equal. |
static void |
assertContentEquals(InputStream in1,
InputStream in2)
Asserts that the content of two InputStream are equal. |
static void |
assertContentEquals(InputStream in1,
InputStream in2,
Charset encoding)
Asserts that the content of two InputStream are equal. |
static void |
assertContentEquals(InputStream in1,
InputStream in2,
Charset encoding,
int from,
int to)
Asserts that the content of two InputStream are equal. |
static void |
assertContentEquals(InputStream in1,
InputStream in2,
Charset encoding,
Pattern... ignores)
Asserts that the content of two Readers are equal. |
static void |
assertContentEquals(InputStream in1,
InputStream in2,
int from,
int to)
Asserts that the content of two InputStream are equal. |
static void |
assertContentEquals(InputStream in1,
InputStream in2,
Pattern... ignores)
Asserts that the content of two Readers are equal. |
static void |
assertContentEquals(LineReader r1,
LineReader r2,
int from,
int to)
Asserts that the content of two Readers are equal. |
static void |
assertContentEquals(LineReader r1,
LineReader r2,
Pattern... ignores)
Asserts that the content of two Readers are equal. |
static void |
assertContentEquals(Reader r1,
Reader r2)
Asserts that the content of two Readers are equal. |
static void |
assertContentEquals(Reader r1,
Reader r2,
int from,
int to)
Asserts that the content of two Readers are equal. |
static void |
assertContentEquals(Reader r1,
Reader r2,
Pattern... ignores)
Asserts that the content of 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 assertContentEquals(InputStream in1,
InputStream in2)
throws AssertionError
in1 - the first InputStreamin2 - the second InputStream
AssertionError - if the check fails
public static void assertContentEquals(InputStream in1,
InputStream in2,
Charset encoding)
throws AssertionError
in1 - the first InputStreamin2 - the second InputStreamencoding - the encoding
AssertionError - if the check fails
public static void assertContentEquals(InputStream in1,
InputStream in2,
int from,
int to)
throws AssertionError
in1 - the first InputStreamin2 - the second InputStreamfrom - the line number from which the comparison is started
(starting with 1)to - the last line number where the comparison ends.
AssertionError - if the check fails
public static void assertContentEquals(InputStream in1,
InputStream in2,
Charset encoding,
int from,
int to)
throws AssertionError
in1 - the first InputStreamin2 - the second InputStreamencoding - the encodingfrom - the line number from which the comparison is started
(starting with 1)to - the last line number where the comparison ends.
AssertionError - if the check fails
public static void assertContentEquals(InputStream in1,
InputStream in2,
Pattern... ignores)
throws AssertionError
in1 - the first InputStreamin2 - the second InputStreamignores - the lines matching this pattern will be ignored
AssertionError - if the check fails
public static void assertContentEquals(InputStream in1,
InputStream in2,
Charset encoding,
Pattern... ignores)
throws AssertionError
in1 - the first InputStreamin2 - the second InputStreamencoding - the encodingignores - the lines matching this pattern will be ignored
AssertionError - if the check fails
public static void assertContentEquals(Reader r1,
Reader r2)
throws AssertionError
r1 - the first Readerr2 - the second Reader
AssertionError - if the check fails
public static void assertContentEquals(Reader r1,
Reader r2,
int from,
int to)
throws AssertionError
r1 - the first Readerr2 - the second Readerfrom - the line number from which the comparison is started
(starting with 1)to - the last line number where the comparison ends.
AssertionError - if the check fails
public static void assertContentEquals(Reader r1,
Reader r2,
Pattern... ignores)
throws AssertionError
r1 - the first Readerr2 - the second Readerignores - the lines matching this pattern will be ignored
AssertionError - if the check fails
public static void assertContentEquals(BufferedReader r1,
BufferedReader r2)
throws AssertionError
r1 - the first Readerr2 - the second Reader
AssertionError - if the check fails
public static void assertContentEquals(LineReader r1,
LineReader r2,
int from,
int to)
throws AssertionError
r1 - the first Readerr2 - the second Readerfrom - the line number from which the comparison is started
(starting with 1)to - the last line number where the comparison ends.
AssertionError - if the check fails
public static void assertContentEquals(LineReader r1,
LineReader r2,
Pattern... ignores)
throws AssertionError
r1 - the first Readerr2 - the second Readerignores - the lines matching this pattern will be ignored
AssertionError - if the check fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||