Package org.assertj.core.internal
Class InputStreams
java.lang.Object
org.assertj.core.internal.InputStreams
Reusable assertions for
InputStream
s.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
assertNotNull
(AssertionInfo info, InputStream stream) 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.
-
Field Details
-
Constructor Details
-
InputStreams
InputStreams()
-
-
Method Details
-
instance
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
assertSameContentAs
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.
-
assertNotNull
-