public class InputStreamAssert extends AbstractAssert<InputStreamAssert,InputStream>
InputStream
s.
To create a new instance of this class, invoke
.
Assertions.assertThat(InputStream)
actual, 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, 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, usingDefaultComparator
public 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 © 2007–2014. All rights reserved.