Package org.assertj.core.internal
Class InputStreams
- java.lang.Object
-
- org.assertj.core.internal.InputStreams
-
public class InputStreams extends Object
Reusable assertions for
s.InputStream
- Author:
- Matthieu Baechler
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertSameContentAs(AssertionInfo info, InputStream actual, InputStream expected)
Asserts that the given InputStreams have same content.static InputStreams
instance()
Returns the singleton instance of this class.
-
-
-
Method Detail
-
instance
public static InputStreams instance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
assertSameContentAs
public void assertSameContentAs(AssertionInfo info, InputStream actual, InputStream expected)
Asserts that the given InputStreams have same 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 same content.InputStreamsException
- if an I/O error occurs.
-
-