Interface ReaderTests
-
- All Known Subinterfaces:
ReaderTests.MarkResetTests
,ReaderTests.ReadCharTests
,ReaderTests.ReadIntoCharArrayPortionTests
,ReaderTests.ReadIntoCharArrayTests
,ReaderTests.ReadIntoCharBufferTests
,ReaderTests.ReadyTests
,ReaderTests.SkipTests
,ReaderTests.TransferToTests
public interface ReaderTests
Base interface for testing separateReader
functionalities.- Author:
- Rob Spoor
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ReaderTests.MarkResetTests
Contains tests forReader.mark(int)
andReader.reset()
.static interface
ReaderTests.ReadCharTests
Contains tests forReader.read()
.static interface
ReaderTests.ReadIntoCharArrayPortionTests
Contains tests forReader.read(char[], int, int)
.static interface
ReaderTests.ReadIntoCharArrayTests
Contains tests forReader.read(char[])
.static interface
ReaderTests.ReadIntoCharBufferTests
Contains tests forReader.read(CharBuffer)
.static interface
ReaderTests.ReadyTests
Contains tests forReader.ready()
.static interface
ReaderTests.SkipTests
Contains tests forReader.skip(long)
.static interface
ReaderTests.TransferToTests
Contains tests forReader.transferTo(Writer)
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
expectedContent()
Returns the expected content fromcreated readers
.Reader
reader()
Returns the reader to test.
-
-
-
Method Detail
-
reader
Reader reader()
Returns the reader to test.This method will be called only once for each test. This makes it possible to initialize the reader in a method annotated with
BeforeEach
, and perform additional tests after the pre-defined test has finished.- Returns:
- The reader to test.
-
expectedContent
String expectedContent()
Returns the expected content fromcreated readers
.- Returns:
- The expected content.
-
-