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: ss
test_class.modifier: private
test_class.original_string: private ServerStore ss;
test_class.type: ServerStore
test_class.var_name: ss
test_class.declarator: store
test_class.modifier: private
test_class.original_string: private BlobStore   store;
test_class.type: BlobStore
test_class.var_name: store
test_class.file: akubra-rmi/src/test/java/org/akubraproject/rmi/server/ServerStoreTest.java
test_class.identifier: ServerStoreTest
test_case.body: @Test
    public void testOpenConnection() throws Exception {
      BlobStoreConnection con = createMock(BlobStoreConnection.class);
      reset(store);
      expect(store.openConnection(null, null)).andReturn(con);
      expect(store.openConnection(null, null)).andThrow(new UnsupportedOperationException());
      replay(store);
  
      RemoteConnection rc = ss.openConnection(null);
      assertTrue(rc instanceof ServerConnection);
      assertEquals(con, ((ServerConnection)rc).getConnection());
  
      try {
        ss.openConnection(null);
        fail("Failed to rcv expected exception");
      } catch (UnsupportedOperationException e) {
      }
  
      verify(store);
    }
test_case.class_method_signature: ServerStoreTest.testOpenConnection()
test_case.full_signature: @Test public void testOpenConnection()
test_case.identifier: testOpenConnection
test_case.invocations: createMock reset andReturn expect openConnection andThrow expect openConnection replay openConnection assertTrue assertEquals getConnection openConnection fail verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOpenConnection()
focal_class.declarator: serialVersionUID = 1L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 1L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: store
focal_class.modifier: private final
focal_class.original_string: private final BlobStore store;
focal_class.type: BlobStore
focal_class.var_name: store
focal_class.file: akubra-rmi/src/main/java/org/akubraproject/rmi/server/ServerStore.java
focal_class.identifier: ServerStore
focal_class.interfaces: implements RemoteStore
focal_class.class_method_signature: ServerStore.ServerStore(BlobStore store, Exporter exporter)
focal_class.full_signature: public  ServerStore(BlobStore store, Exporter exporter)
focal_class.identifier: ServerStore
focal_class.modifiers: public
focal_class.parameters: (BlobStore store, Exporter exporter)
focal_class.signature:  ServerStore(BlobStore store, Exporter exporter)
focal_class.class_method_signature: ServerStore.openConnection(Map<String, String> hints)
focal_class.full_signature: @Override public RemoteConnection openConnection(Map<String, String> hints)
focal_class.identifier: openConnection
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, String> hints)
focal_class.return: RemoteConnection
focal_class.signature: RemoteConnection openConnection(Map<String, String> hints)
focal_class.class_method_signature: ServerStore.startTransactionListener(Map<String, String> hints)
focal_class.full_signature: @Override public RemoteTransactionListener startTransactionListener(Map<String, String> hints)
focal_class.identifier: startTransactionListener
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, String> hints)
focal_class.return: RemoteTransactionListener
focal_class.signature: RemoteTransactionListener startTransactionListener(Map<String, String> hints)
focal_class.superclass: extends Exportable
focal_method.body: @Override
    public RemoteConnection openConnection(Map<String, String> hints) throws IOException {
      return new ServerConnection(store.openConnection(null, hints), getExporter());
    }
focal_method.class_method_signature: ServerStore.openConnection(Map<String, String> hints)
focal_method.full_signature: @Override public RemoteConnection openConnection(Map<String, String> hints)
focal_method.identifier: openConnection
focal_method.invocations: openConnection getExporter
focal_method.modifiers: @Override public
focal_method.parameters: (Map<String, String> hints)
focal_method.return: RemoteConnection
focal_method.signature: RemoteConnection openConnection(Map<String, String> hints)