SingleClientHistory extends AbstractClientHistory { @Override ClientSnapshot doCreateSnapshot() { final TransactionIdentifier txId = new TransactionIdentifier(getIdentifier(), nextTx()); LOG.debug("{}: creating a new snapshot {}", this, txId); return new ClientSnapshot(this, txId); } SingleClientHistory(final AbstractDataStoreClientBehavior client, final LocalHistoryIdentifier identifier);   }
@Override @Test public void testDoCreateSnapshot() { final ClientSnapshot clientSnapshot = object().doCreateSnapshot(); Assert.assertEquals(new TransactionIdentifier(object().getIdentifier(), object().nextTx()).getHistoryId(), clientSnapshot.getIdentifier().getHistoryId()); }
@Override @Test public void testOnTransactionAbort() { final ClientSnapshot clientSnapshot = object().doCreateSnapshot(); Assert.assertTrue(clientSnapshot.abort()); }