public static void waitTillSucceded(TestProcessComponentListener listener, int maxSeconds) {
H2HWaiter waiter = new H2HWaiter(maxSeconds);
do {
if (listener.hasFailed())
Assert.fail();
waiter.tickASecond();
} while (!listener.hasSucceeded());
}
public static void waitTillFailed(TestProcessComponentListener listener, int maxSeconds) {
H2HWaiter waiter = new H2HWaiter(maxSeconds);