public class InputStreamAssert extends AbstractAssert<InputStreamAssert,java.io.InputStream>
InputStream
s.
To create a new instance of this class, invoke
.
Assertions.assertThat(InputStream)
actual, myself
Constructor and Description |
---|
InputStreamAssert(java.io.InputStream actual) |
Modifier and Type | Method and Description |
---|---|
InputStreamAssert |
hasContentEqualTo(java.io.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 hasContentEqualTo(java.io.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.java.lang.NullPointerException
- if the given InputStream
is null
.java.lang.AssertionError
- if the actual InputStream
is null
.java.lang.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–2018. All rights reserved.