org.assertj.core.internal
Class InputStreams

java.lang.Object
  extended by org.assertj.core.internal.InputStreams

public class InputStreams
extends Object

Reusable assertions for InputStreams.

Author:
Matthieu Baechler

Method Summary
 void assertEqualContent(AssertionInfo info, InputStream actual, InputStream expected)
          Asserts that the given InputStreams have equal content.
static InputStreams instance()
          Returns the singleton instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static InputStreams instance()
Returns the singleton instance of this class.

Returns:
the singleton instance of this class.

assertEqualContent

public void assertEqualContent(AssertionInfo info,
                               InputStream actual,
                               InputStream expected)
Asserts that the given InputStreams have equal content.

Parameters:
info - contains information about the assertion.
actual - the "actual" InputStream.
expected - the "expected" InputStream.
Throws:
NullPointerException - if expected is null.
AssertionError - if actual is null.
AssertionError - if the given InputStreams do not have equal content.
InputStreamsException - if an I/O error occurs.


Copyright © 2013–2015 AssertJ. All rights reserved.