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 fors.InputStreamTo 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 InputStreamAsserthasContentEqualTo(java.io.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
-
-
-
-
Method Detail
-
hasContentEqualTo
public InputStreamAssert hasContentEqualTo(java.io.InputStream expected)
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:
java.lang.NullPointerException- if the givenInputStreamisnull.java.lang.AssertionError- if the actualInputStreamisnull.java.lang.AssertionError- if the content of the actualInputStreamis not equal to the content of the given one.InputStreamsException- if an I/O error occurs.
-
-