Package org.fest.assertions.internal
Class InputStreams
- java.lang.Object
-
- org.fest.assertions.internal.InputStreams
-
public class InputStreams extends java.lang.ObjectReusable assertions fors.InputStream- Author:
- Matthieu Baechler
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertEqualContent(AssertionInfo info, java.io.InputStream actual, java.io.InputStream expected)Asserts that the given InputStreams have equal content.static InputStreamsinstance()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.
-
assertEqualContent
public void assertEqualContent(AssertionInfo info, java.io.InputStream actual, java.io.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:
java.lang.NullPointerException- ifexpectedisnull.java.lang.AssertionError- ifactualisnull.java.lang.AssertionError- if the given InputStreams do not have equal content.InputStreamsException- if an I/O error occurs.
-
-