Interface InputStreamTests
-
- All Known Subinterfaces:
InputStreamTests.AvailableTests
,InputStreamTests.MarkResetTests
,InputStreamTests.ReadAllBytesTests
,InputStreamTests.ReadByteTests
,InputStreamTests.ReadIntoByteArrayPortionTests
,InputStreamTests.ReadIntoByteArrayTests
,InputStreamTests.ReadNBytesIntoByteArrayPortionTests
,InputStreamTests.ReadNBytesTests
,InputStreamTests.SkipTests
,InputStreamTests.TransferToTests
public interface InputStreamTests
Base interface for testing separateInputStream
functionalities.- Author:
- Rob Spoor
-
-
Nested Class Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
expectedContent()
Returns the expected content fromcreated input streams
.InputStream
inputStream()
Returns the input stream to test.
-
-
-
Method Detail
-
inputStream
InputStream inputStream()
Returns the input stream to test.This method will be called only once for each test. This makes it possible to initialize the input stream in a method annotated with
BeforeEach
, and perform additional tests after the pre-defined test has finished.- Returns:
- The input stream to test.
-
expectedContent
byte[] expectedContent()
Returns the expected content fromcreated input streams
.- Returns:
- The expected content.
-
-