Package org.fest.assertions.internal
Class InputStreams
java.lang.Object
org.fest.assertions.internal.InputStreams
Reusable assertions for
InputStream
s.- Author:
- Matthieu Baechler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Method Details
-
instance
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
assertEqualContent
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
- ifexpected
isnull
.AssertionError
- ifactual
isnull
.AssertionError
- if the given InputStreams do not have equal content.InputStreamsException
- if an I/O error occurs.
-