| Package | Description |
|---|---|
| net.sf.expectit |
Classes for implementing expect-like functionality.
|
| Modifier and Type | Method and Description |
|---|---|
ExpectBuilder |
ExpectBuilder.withAutoFlushEcho(boolean autoFlushEcho)
Enables automatic flushing of the echo input and output after each match operation
if the given echo object(s) implements
Flushable interface. |
ExpectBuilder |
ExpectBuilder.withBufferSize(int bufferSize)
Sets the size of the input buffer in bytes.
|
ExpectBuilder |
ExpectBuilder.withCharset(Charset charset)
Sets the character encoding used to covert bytes when working with byte streams.
|
ExpectBuilder |
ExpectBuilder.withCombineInputs(boolean combineInputs)
Combines input streaming data into one input.
|
ExpectBuilder |
ExpectBuilder.withEchoInput(Appendable firstInput,
Appendable... otherInputs)
Enables printing of all the received data.
|
ExpectBuilder |
ExpectBuilder.withEchoOutput(Appendable echoOutput)
Enables printing of all the sent data.
|
ExpectBuilder |
ExpectBuilder.withEchoOutput(EchoOutput echoOutput)
Deprecated.
|
ExpectBuilder |
ExpectBuilder.withErrorOnTimeout(boolean errorOnTimeout)
Deprecated.
This method is deprecated and will be removed. Use
withExceptionOnFailure() instead. |
ExpectBuilder |
ExpectBuilder.withExceptionOnFailure()
Enables throwing an
ExpectIOException if an expect operation
was not successful. |
ExpectBuilder |
ExpectBuilder.withExecutor(ExecutorService executor)
Set the executor used to create internal thread.
|
ExpectBuilder |
ExpectBuilder.withInfiniteTimeout()
Sets the default timeout to infinity.
|
ExpectBuilder |
ExpectBuilder.withInputFilters(Filter filter,
Filter... moreFilters)
Sets a filter for the input.
|
ExpectBuilder |
ExpectBuilder.withInputs(InputStream... inputs)
Sets the input streams for expect operations.
|
ExpectBuilder |
ExpectBuilder.withLineSeparator(String lineSeparator)
Sets the line separator used by the
Expect.sendLine() method. |
ExpectBuilder |
ExpectBuilder.withOutput(OutputStream output)
Sets the output stream where
Expect sends command to. |
ExpectBuilder |
ExpectBuilder.withTimeout(long duration,
TimeUnit unit)
Sets the default timeout in the given unit for expect operations.
|
Copyright © 2014–2018 Alexey Gavrilov and contributors. All rights reserved.