public class LogLeecher extends Object
ServerLogReader
and wait until a specific text is printed in the log.Modifier and Type | Class and Description |
---|---|
static class |
LogLeecher.LeecherType
Leecher type enum.
|
Constructor and Description |
---|
LogLeecher(String text)
Initializes the Leecher with expected log.
|
LogLeecher(String text,
LogLeecher.LeecherType leecherType)
Initializes the Leecher with expected log.
|
Modifier and Type | Method and Description |
---|---|
void |
waitForText(long timeout)
Wait until a specific log is found.
|
public String text
public LogLeecher(String text)
text
- The log line expectedpublic LogLeecher(String text, LogLeecher.LeecherType leecherType)
text
- The log line expectedleecherType
- type of the log leecherpublic void waitForText(long timeout) throws BallerinaTestException
timeout
- timeoutBallerinaTestException
- if waiting is interruptedCopyright © 2018 WSO2. All rights reserved.