test_class.declarator: folder = new TemporaryFolder(new File("target"))
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public TemporaryFolder folder = new TemporaryFolder(new File("target"));
test_class.type: TemporaryFolder
test_class.var_name: folder
test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/standby/server/DefaultStandbyHeadReaderTest.java
test_class.identifier: DefaultStandbyHeadReaderTest
test_case.body: @Test
      public void shouldWaitForFlushAndReturnHeadSegmentId() throws Exception {
          try (FileStore store = newFileStore()) {
              DefaultStandbyHeadReader reader = new DefaultStandbyHeadReader(store, 10_000L);
              assertNotNull(reader.readHeadRecordId());
              assertEquals(store.getRevisions().getPersistedHead().toString(), reader.readHeadRecordId());
          }
      }
test_case.class_method_signature: DefaultStandbyHeadReaderTest.shouldWaitForFlushAndReturnHeadSegmentId()
test_case.full_signature: @Test public void shouldWaitForFlushAndReturnHeadSegmentId()
test_case.identifier: shouldWaitForFlushAndReturnHeadSegmentId
test_case.invocations: newFileStore assertNotNull readHeadRecordId assertEquals toString getPersistedHead getRevisions readHeadRecordId
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldWaitForFlushAndReturnHeadSegmentId()
focal_class.declarator: store
focal_class.modifier: private final
focal_class.original_string: private final FileStore store;
focal_class.type: FileStore
focal_class.var_name: store
focal_class.declarator: timeout
focal_class.modifier: private final
focal_class.original_string: private final long timeout;
focal_class.type: long
focal_class.var_name: timeout
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/server/DefaultStandbyHeadReader.java
focal_class.identifier: DefaultStandbyHeadReader
focal_class.interfaces: implements StandbyHeadReader
focal_class.class_method_signature: DefaultStandbyHeadReader.DefaultStandbyHeadReader(FileStore store, long timeout)
focal_class.full_signature:   DefaultStandbyHeadReader(FileStore store, long timeout)
focal_class.identifier: DefaultStandbyHeadReader
focal_class.parameters: (FileStore store, long timeout)
focal_class.signature:  DefaultStandbyHeadReader(FileStore store, long timeout)
focal_class.class_method_signature: DefaultStandbyHeadReader.readHeadRecordId()
focal_class.full_signature: @Override public String readHeadRecordId()
focal_class.identifier: readHeadRecordId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String readHeadRecordId()
focal_method.body: @Override
      public String readHeadRecordId() {
          RecordId persistedHead = readPersistedHeadWithRetry(store, timeout);
          return persistedHead != null ? persistedHead.toString() : null;
      }
focal_method.class_method_signature: DefaultStandbyHeadReader.readHeadRecordId()
focal_method.full_signature: @Override public String readHeadRecordId()
focal_method.identifier: readHeadRecordId
focal_method.invocations: readPersistedHeadWithRetry toString
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String readHeadRecordId()