startAndWaitForConsoleMessageMaxMs

public abstract boolean startAndWaitForConsoleMessageMaxMs(String messageInConsole, long maxWaitUntilReturning)

Starts the process and waits until a specific message appears in the process console output (stdout or stderr), or the timeout elapses.

Return

true if the message was seen before the timeout; false if timed out

Parameters

messageInConsole

the text to wait for in the console output

maxWaitUntilReturning

maximum time to wait in milliseconds before giving up

Throws

if closing/decoding console streams fails while waiting

if the waiting thread is interrupted