public class InputStreams extends Object
InputStreams.| Modifier and Type | Method and Description |
|---|---|
void |
assertHasContent(AssertionInfo info,
InputStream actual,
String expected)
Asserts that the given InputStream has the same content as the given String.
|
void |
assertHasDigest(AssertionInfo info,
InputStream actual,
MessageDigest digest,
byte[] expected) |
void |
assertHasDigest(AssertionInfo info,
InputStream actual,
MessageDigest digest,
String expected) |
void |
assertHasDigest(AssertionInfo info,
InputStream actual,
String algorithm,
byte[] expected) |
void |
assertHasDigest(AssertionInfo info,
InputStream actual,
String algorithm,
String expected) |
void |
assertSameContentAs(AssertionInfo info,
InputStream actual,
InputStream expected)
Asserts that the given InputStreams have same content.
|
static InputStreams |
instance()
Returns the singleton instance of this class.
|
public static InputStreams instance()
public void assertSameContentAs(AssertionInfo info, InputStream actual, InputStream expected)
info - contains information about the assertion.actual - the "actual" InputStream.expected - the "expected" InputStream.NullPointerException - if expected is null.AssertionError - if actual is null.AssertionError - if the given InputStreams do not have same content.InputStreamsException - if an I/O error occurs.public void assertHasContent(AssertionInfo info, InputStream actual, String expected)
info - contains information about the assertion.actual - the actual InputStream.expected - the expected String.NullPointerException - if expected is null.AssertionError - if actual is null.AssertionError - if the given InputStream does not have the same content as the given String.InputStreamsException - if an I/O error occurs.public void assertHasDigest(AssertionInfo info, InputStream actual, MessageDigest digest, byte[] expected)
public void assertHasDigest(AssertionInfo info, InputStream actual, MessageDigest digest, String expected)
public void assertHasDigest(AssertionInfo info, InputStream actual, String algorithm, byte[] expected)
public void assertHasDigest(AssertionInfo info, InputStream actual, String algorithm, String expected)
Copyright © 2014–2018 AssertJ. All rights reserved.