Example usage for java.util.function LongSupplier LongSupplier

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

Introduction

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

Prototype

LongSupplier

Source Link

Usage

From source file:org.openhab.io.transport.modbus.test.IntegrationTestSupport.java

@Before
public void setUp() throws Exception {
    modbustRequestCaptor = new ResultCaptor<>(new LongSupplier() {

        @Override//w  ww.jav  a 2  s. c o m
        public long getAsLong() {
            return artificialServerWait;
        }
    });
    MockitoAnnotations.initMocks(this);
    modbusManager = new NonOSGIModbusManager();
    startServer();
}