@Test public void testOnProxyDestroyed() { final ProxyHistory proxyHistory = Mockito.mock(ProxyHistory.class); when(proxyHistory.getIdentifier()).thenReturn(HISTORY_ID); object().onProxyDestroyed(proxyHistory); verify(proxyHistory).getIdentifier(); }
final synchronized void onProxyDestroyed(final ProxyHistory proxyHistory) { histories.remove(proxyHistory.getIdentifier().getCookie()); LOG.debug("{}: removed destroyed proxy {}", this, proxyHistory); }
AbstractClientHistory extends LocalAbortable implements Identifiable<LocalHistoryIdentifier> { final synchronized void onProxyDestroyed(final ProxyHistory proxyHistory) { histories.remove(proxyHistory.getIdentifier().getCookie()); LOG.debug("{}: removed destroyed proxy {}", this, proxyHistory); } }
AbstractClientHistory extends LocalAbortable implements Identifiable<LocalHistoryIdentifier> { final synchronized void onProxyDestroyed(final ProxyHistory proxyHistory) { histories.remove(proxyHistory.getIdentifier().getCookie()); LOG.debug("{}: removed destroyed proxy {}", this, proxyHistory); } AbstractClientHistory(final AbstractDataStoreClientBehavior client, final LocalHistoryIdentifier identifier); }
AbstractClientHistory extends LocalAbortable implements Identifiable<LocalHistoryIdentifier> { final synchronized void onProxyDestroyed(final ProxyHistory proxyHistory) { histories.remove(proxyHistory.getIdentifier().getCookie()); LOG.debug("{}: removed destroyed proxy {}", this, proxyHistory); } AbstractClientHistory(final AbstractDataStoreClientBehavior client, final LocalHistoryIdentifier identifier); @Override LocalHistoryIdentifier getIdentifier(); ClientTransaction createTransaction(); ClientSnapshot takeSnapshot(); }
AbstractClientHistory extends LocalAbortable implements Identifiable<LocalHistoryIdentifier> { final synchronized void onProxyDestroyed(final ProxyHistory proxyHistory) { histories.remove(proxyHistory.getIdentifier().getCookie()); LOG.debug("{}: removed destroyed proxy {}", this, proxyHistory); } AbstractClientHistory(final AbstractDataStoreClientBehavior client, final LocalHistoryIdentifier identifier); @Override LocalHistoryIdentifier getIdentifier(); ClientTransaction createTransaction(); ClientSnapshot takeSnapshot();  }