| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT |
| Constructor and Description |
|---|
Expect4jImpl(CLIConnection cliConnection) |
Expect4jImpl(Reader reader,
Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
expect(Match match) |
int |
expect(Match[] matches) |
Reader |
getReader() |
Writer |
getWriter() |
void |
run() |
void |
send(String str) |
void |
setTimeout(TimeoutMatch timeoutMatch) |
public static final long DEFAULT_TIMEOUT
public Expect4jImpl(CLIConnection cliConnection) throws Expect4jException
Expect4jExceptionpublic void send(String str) throws IOException
send in interface Expect4jIOExceptionpublic int expect(Match match)
public int expect(Match[] matches) throws TimeoutException
expect in interface Expect4jTimeoutException - will be thrown if the no match is found in the
given timeout and not timeout match closure is foundpublic void setTimeout(TimeoutMatch timeoutMatch)
setTimeout in interface Expect4jCopyright © 2016 iTransformers Labs. All rights reserved.