Package org.assertj.core.internal
Class InputStreams
- java.lang.Object
-
- org.assertj.core.internal.InputStreams
-
public class InputStreams extends java.lang.ObjectReusable assertions fors.InputStream
-
-
Constructor Summary
Constructors Constructor Description InputStreams()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidassertNotNull(AssertionInfo info, java.io.InputStream stream)voidassertSameContentAs(AssertionInfo info, java.io.InputStream actual, java.io.InputStream expected)Asserts that the given InputStreams have same content.static InputStreamsinstance()Returns the singleton instance of this class.
-
-
-
Field Detail
-
INSTANCE
private static final InputStreams INSTANCE
-
diff
Diff diff
-
failures
Failures failures
-
-
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, java.io.InputStream actual, java.io.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:
java.lang.NullPointerException- ifexpectedisnull.java.lang.AssertionError- ifactualisnull.java.lang.AssertionError- if the given InputStreams do not have same content.InputStreamsException- if an I/O error occurs.
-
assertNotNull
private static void assertNotNull(AssertionInfo info, java.io.InputStream stream)
-
-