List of usage examples for java.util.function LongSupplier LongSupplier
LongSupplier
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(); }