Package org.fest.assertions.api
Class InputStreamAssert
java.lang.Object
org.fest.assertions.api.AbstractAssert<InputStreamAssert,InputStream>
org.fest.assertions.api.InputStreamAssert
- All Implemented Interfaces:
Assert<InputStreamAssert,
,InputStream> Descriptable<InputStreamAssert>
,ExtensionPoints<InputStreamAssert,
InputStream>
Assertion methods for
InputStream
s.
To create a new instance of this class, invoke
.
Assertions.assertThat(InputStream)
- Author:
- Matthieu Baechler
-
Field Summary
Fields inherited from class org.fest.assertions.api.AbstractAssert
actual, myself
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhasContentEqualTo
(InputStream expected) Verifies that the content of the actualInputStream
is equal to the content of the given one.Methods inherited from class org.fest.assertions.api.AbstractAssert
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
-
Constructor Details
-
InputStreamAssert
-
-
Method Details
-
hasContentEqualTo
Verifies that the content of the actualInputStream
is equal to the content of the given one.- Parameters:
expected
- the givenInputStream
to compare the actualInputStream
to.- Returns:
this
assertion object.- Throws:
NullPointerException
- if the givenInputStream
isnull
.AssertionError
- if the actualInputStream
isnull
.AssertionError
- if the content of the actualInputStream
is not equal to the content of the given one.InputStreamsException
- if an I/O error occurs.
-