public class InputStreams
extends java.lang.Object
InputStreams.| Modifier and Type | Field and Description |
|---|---|
(package private) Diff |
diff |
(package private) Failures |
failures |
private static InputStreams |
INSTANCE |
| Constructor and Description |
|---|
InputStreams() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
assertNotNull(AssertionInfo info,
java.io.InputStream stream) |
void |
assertSameContentAs(AssertionInfo info,
java.io.InputStream actual,
java.io.InputStream expected)
Asserts that the given InputStreams have same content.
|
static InputStreams |
instance()
Returns the singleton instance of this class.
|
private static final InputStreams INSTANCE
Diff diff
Failures failures
public static InputStreams instance()
public void assertSameContentAs(AssertionInfo info, java.io.InputStream actual, java.io.InputStream expected)
info - contains information about the assertion.actual - the "actual" InputStream.expected - the "expected" InputStream.java.lang.NullPointerException - if expected is null.java.lang.AssertionError - if actual is null.java.lang.AssertionError - if the given InputStreams do not have same content.InputStreamsException - if an I/O error occurs.private static void assertNotNull(AssertionInfo info, java.io.InputStream stream)