org.assertj.core.api
Class AbstractInputStreamAssert<S extends AbstractInputStreamAssert<S,A>,A extends InputStream>
java.lang.Object
org.assertj.core.api.AbstractAssert<S,A>
org.assertj.core.api.AbstractInputStreamAssert<S,A>
- Type Parameters:
S - the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.A - the type of the "actual" value.
- All Implemented Interfaces:
- Assert<S,A>, Descriptable<S>, ExtensionPoints<S,A>
- Direct Known Subclasses:
- InputStreamAssert
public abstract class AbstractInputStreamAssert<S extends AbstractInputStreamAssert<S,A>,A extends InputStream>
- extends AbstractAssert<S,A>
Base class for all implementations of assertions for InputStreams.
- Author:
- Matthieu Baechler, Mikhail Mazursky
|
Method Summary |
S |
hasContentEqualTo(InputStream expected)
Verifies that the content of the actual InputStream is equal to the content of the given one. |
| Methods inherited from class org.assertj.core.api.AbstractAssert |
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator |
AbstractInputStreamAssert
protected AbstractInputStreamAssert(A actual,
Class<?> selfType)
hasContentEqualTo
public S 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 © 2013–2015 AssertJ. All rights reserved.