@Test public void testNothingToRead() { when(tailer.readDocument(any(ReadMarshallable.class))).thenReturn(false); QueueReader reader = givenReader(); assertThat(reader.hasRecordAvailable()).isFalse(); }
public boolean hasRecordAvailable() { maybeReadNext(); return nextRecord != null; }
QueueReader { public boolean hasRecordAvailable() { maybeReadNext(); return nextRecord != null; } }
QueueReader { public boolean hasRecordAvailable() { maybeReadNext(); return nextRecord != null; } QueueReader(ToolOptions toolOptions);   QueueReader(ToolOptions toolOptions, ChronicleQueue chronicleQueue); }
QueueReader { public boolean hasRecordAvailable() { maybeReadNext(); return nextRecord != null; } QueueReader(ToolOptions toolOptions);   QueueReader(ToolOptions toolOptions, ChronicleQueue chronicleQueue); boolean hasRecordAvailable(); StoredAuditRecord nextRecord(); }
QueueReader { public boolean hasRecordAvailable() { maybeReadNext(); return nextRecord != null; } QueueReader(ToolOptions toolOptions);   QueueReader(ToolOptions toolOptions, ChronicleQueue chronicleQueue); boolean hasRecordAvailable(); StoredAuditRecord nextRecord();  }