org.fest.assertions.api
Class InputStreamAssert

java.lang.Object
  extended by org.fest.assertions.api.AbstractAssert<InputStreamAssert,InputStream>
      extended by 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

Field Summary
 
Fields inherited from class org.fest.assertions.api.AbstractAssert
actual, myself
 
Constructor Summary
InputStreamAssert(InputStream actual)
           
 
Method Summary
 InputStreamAssert 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.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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamAssert

public InputStreamAssert(InputStream actual)
Method Detail

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.