Interface InputStreamDelegateTests
-
- All Known Subinterfaces:
InputStreamDelegateTests.CloseTests
public interface InputStreamDelegateTests
Base interface for testing thatInputStream
implementations correctly delegate to anotherInputStream
.- Author:
- Rob Spoor
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
InputStreamDelegateTests.CloseTests
Contains tests forInputStream.close()
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
wrapInputStream(InputStream delegate)
Creates the input stream to test.
-
-
-
Method Detail
-
wrapInputStream
InputStream wrapInputStream(InputStream delegate)
Creates the input stream to test.This method will be called only once for each test. This makes it possible to capture the input stream to test and its delegate, and perform additional tests after the pre-defined test has finished.
- Parameters:
delegate
- The delegate to test against.- Returns:
- The created input stream.
-
-