Class InputStreamAssert

All Implemented Interfaces:
Assert<InputStreamAssert,InputStream>, Descriptable<InputStreamAssert>, ExtensionPoints<InputStreamAssert,InputStream>

public class InputStreamAssert extends AbstractAssert<InputStreamAssert,InputStream>
Assertion methods for InputStreams.

To create a new instance of this class, invoke Assertions.assertThat(InputStream).

Author:
Matthieu Baechler
  • Constructor Details

    • InputStreamAssert

      public InputStreamAssert(InputStream actual)
  • Method Details

    • hasContentEqualTo

      public InputStreamAssert hasContentEqualTo(InputStream expected)
      Verifies that the content of the actual InputStream is equal to the content of the given one.
      Parameters:
      expected - the given InputStream to compare the actual InputStream to.
      Returns:
      this assertion object.
      Throws:
      NullPointerException - if the given InputStream is null.
      AssertionError - if the actual InputStream is null.
      AssertionError - if the content of the actual InputStream is not equal to the content of the given one.
      InputStreamsException - if an I/O error occurs.