public class InputStreamAssert extends AbstractAssert<InputStreamAssert,InputStream>
InputStreams.
To create a new instance of this class, invoke .
Assertions.assertThat(InputStream)
actual, info, myself| Constructor and Description |
|---|
InputStreamAssert(InputStream actual) |
| Modifier and Type | Method and Description |
|---|---|
InputStreamAssert |
hasContentEqualTo(InputStream expected)
Verifies that the content of the actual
InputStream is equal to the content of the given one. |
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparatorpublic InputStreamAssert(InputStream actual)
public InputStreamAssert hasContentEqualTo(InputStream expected)
InputStream is equal to the content of the given one.expected - the given InputStream to compare the actual InputStream to.this assertion object.NullPointerException - if the given InputStream is null.AssertionError - if the actual InputStream is null.AssertionError - if the content of the actual InputStream is not equal to the content of the given one.InputStreamsException - if an I/O error occurs.Copyright © 2013 AssertJ. All Rights Reserved.