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
InputStreams.
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 actualInputStreamis 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 actualInputStreamis equal to the content of the given one.- Parameters:
expected- the givenInputStreamto compare the actualInputStreamto.- Returns:
thisassertion object.- Throws:
NullPointerException- if the givenInputStreamisnull.AssertionError- if the actualInputStreamisnull.AssertionError- if the content of the actualInputStreamis not equal to the content of the given one.InputStreamsException- if an I/O error occurs.
-