Example usage for java.util.function BooleanSupplier BooleanSupplier

List of usage examples for java.util.function BooleanSupplier BooleanSupplier

Introduction

In this page you can find the example usage for java.util.function BooleanSupplier BooleanSupplier.

Prototype

BooleanSupplier

Source Link

Usage

From source file:com.thoughtworks.go.helper.TestStreamConsumer.java

public void waitForContain(final String content, Timeout timeout) throws InterruptedException {
    Assertions.waitUntil(timeout, new BooleanSupplier() {
        @Override// w ww  . j av a 2  s  .com
        public boolean getAsBoolean() {
            return output().contains(content);
        }
    }, 250);
}