Package org.fest.assertions.api
Class InputStreamAssert
- java.lang.Object
-
- org.fest.assertions.api.AbstractAssert<InputStreamAssert,java.io.InputStream>
-
- org.fest.assertions.api.InputStreamAssert
-
- All Implemented Interfaces:
Assert<InputStreamAssert,java.io.InputStream>
,Descriptable<InputStreamAssert>
,ExtensionPoints<InputStreamAssert,java.io.InputStream>
public class InputStreamAssert extends AbstractAssert<InputStreamAssert,java.io.InputStream>
Assertion methods for
s.InputStream
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 Constructor Description InputStreamAssert(java.io.InputStream actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamAssert
hasContentEqualTo(java.io.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
-
-
-
-
Method Detail
-
hasContentEqualTo
public InputStreamAssert hasContentEqualTo(java.io.InputStream expected)
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:
java.lang.NullPointerException
- if the givenInputStream
isnull
.java.lang.AssertionError
- if the actualInputStream
isnull
.java.lang.AssertionError
- if the content of the actualInputStream
is not equal to the content of the given one.InputStreamsException
- if an I/O error occurs.
-
-