Class InputStreamAssert

    • Constructor Detail

      • InputStreamAssert

        public InputStreamAssert​(java.io.InputStream actual)
    • Method Detail

      • hasContentEqualTo

        public InputStreamAssert hasContentEqualTo​(java.io.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:
        java.lang.NullPointerException - if the given InputStream is null.
        java.lang.AssertionError - if the actual InputStream is null.
        java.lang.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.