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>
public class InputStreamAssert
- extends AbstractAssert<InputStreamAssert,InputStream>
Assertion methods for InputStreams.
To create a new instance of this class, invoke Assertions.assertThat(InputStream).
- Author:
- Matthieu Baechler
| Methods inherited from class org.fest.assertions.api.AbstractAssert |
as, as, describedAs, describedAs, descriptionText, doesNotHave, equals, has, hashCode, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, usingComparator, usingDefaultComparator |
InputStreamAssert
public InputStreamAssert(InputStream actual)
hasContentEqualTo
public InputStreamAssert hasContentEqualTo(InputStream expected)
- Verifies that the content of the actual
InputStream is equal to the content of the given one.
- Parameters:
expected - the given InputStream to compare the actual InputStream to.
- Returns:
this assertion object.
- Throws:
NullPointerException - if the given InputStream is null.
AssertionError - if the actual InputStream is null.
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-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.