test_class.declarator: exporter
test_class.modifier: private
test_class.original_string: private Exporter            exporter;
test_class.type: Exporter
test_class.var_name: exporter
test_class.declarator: con
test_class.modifier: private
test_class.original_string: private BlobStoreConnection con;
test_class.type: BlobStoreConnection
test_class.var_name: con
test_class.declarator: sc
test_class.modifier: private
test_class.original_string: private ServerConnection    sc;
test_class.type: ServerConnection
test_class.var_name: sc
test_class.declarator: cc
test_class.modifier: private
test_class.original_string: private ClientConnection    cc;
test_class.type: ClientConnection
test_class.var_name: cc
test_class.file: akubra-rmi/src/test/java/org/akubraproject/rmi/client/ClientConnectionTest.java
test_class.identifier: ClientConnectionTest
test_case.body: @Test
    public void testListBlobIds() throws IOException {
      URI           id = URI.create("foo:bar");
      Iterator<URI> it = Arrays.asList(id).iterator();
  
      reset(con);
      expect(con.listBlobIds(null)).andReturn(it);
      replay(con);
  
      Iterator<URI> ri = cc.listBlobIds(null);
      assertTrue(ri instanceof ClientIterator<?>);
      assertTrue(ri.hasNext());
      assertEquals(id, ri.next());
      assertFalse(ri.hasNext());
      verify(con);
    }
test_case.class_method_signature: ClientConnectionTest.testListBlobIds()
test_case.full_signature: @Test public void testListBlobIds()
test_case.identifier: testListBlobIds
test_case.invocations: create iterator asList reset andReturn expect listBlobIds replay listBlobIds assertTrue assertTrue hasNext assertEquals next assertFalse hasNext verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testListBlobIds()
focal_class.declarator: log    = LoggerFactory.getLogger(ClientConnection.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger       log    = LoggerFactory.getLogger(ClientConnection.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: remote
focal_class.modifier: private final
focal_class.original_string: private final RemoteConnection remote;
focal_class.type: RemoteConnection
focal_class.var_name: remote
focal_class.declarator: ITERATOR_BATCH_SIZE = 100
focal_class.modifier: public static
focal_class.original_string: public static int ITERATOR_BATCH_SIZE = 100;
focal_class.type: int
focal_class.var_name: ITERATOR_BATCH_SIZE
focal_class.file: akubra-rmi/src/main/java/org/akubraproject/rmi/client/ClientConnection.java
focal_class.identifier: ClientConnection
focal_class.class_method_signature: ClientConnection.ClientConnection(BlobStore store, StreamManager strMgr, RemoteConnection con)
focal_class.full_signature: public  ClientConnection(BlobStore store, StreamManager strMgr, RemoteConnection con)
focal_class.identifier: ClientConnection
focal_class.modifiers: public
focal_class.parameters: (BlobStore store, StreamManager strMgr, RemoteConnection con)
focal_class.signature:  ClientConnection(BlobStore store, StreamManager strMgr, RemoteConnection con)
focal_class.class_method_signature: ClientConnection.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: ClientConnection.getBlob(URI blobId, Map<String, String> hints)
focal_class.full_signature: @Override public Blob getBlob(URI blobId, Map<String, String> hints)
focal_class.identifier: getBlob
focal_class.modifiers: @Override public
focal_class.parameters: (URI blobId, Map<String, String> hints)
focal_class.return: Blob
focal_class.signature: Blob getBlob(URI blobId, Map<String, String> hints)
focal_class.class_method_signature: ClientConnection.getBlob(InputStream in, long estimatedSize, Map<String, String> hints)
focal_class.full_signature: @Override public Blob getBlob(InputStream in, long estimatedSize, Map<String, String> hints)
focal_class.identifier: getBlob
focal_class.modifiers: @Override public
focal_class.parameters: (InputStream in, long estimatedSize, Map<String, String> hints)
focal_class.return: Blob
focal_class.signature: Blob getBlob(InputStream in, long estimatedSize, Map<String, String> hints)
focal_class.class_method_signature: ClientConnection.listBlobIds(String filterPrefix)
focal_class.full_signature: @Override public Iterator<URI> listBlobIds(String filterPrefix)
focal_class.identifier: listBlobIds
focal_class.modifiers: @Override public
focal_class.parameters: (String filterPrefix)
focal_class.return: Iterator<URI>
focal_class.signature: Iterator<URI> listBlobIds(String filterPrefix)
focal_class.class_method_signature: ClientConnection.sync()
focal_class.full_signature: @Override public void sync()
focal_class.identifier: sync
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void sync()
focal_class.superclass: extends AbstractBlobStoreConnection
focal_method.body: @Override
    public Iterator<URI> listBlobIds(String filterPrefix) throws IOException {
      ensureOpen();
  
      RemoteIterator<URI> ri = remote.listBlobIds(filterPrefix);
  
      return new ClientIterator<URI>(ri, ITERATOR_BATCH_SIZE);
    }
focal_method.class_method_signature: ClientConnection.listBlobIds(String filterPrefix)
focal_method.full_signature: @Override public Iterator<URI> listBlobIds(String filterPrefix)
focal_method.identifier: listBlobIds
focal_method.invocations: ensureOpen listBlobIds
focal_method.modifiers: @Override public
focal_method.parameters: (String filterPrefix)
focal_method.return: Iterator<URI>
focal_method.signature: Iterator<URI> listBlobIds(String filterPrefix)