@Override public ImmutableSet<WaveletId> lookup(WaveId waveId) throws PersistenceException { return deltaStore.lookup(waveId); }
public void testLookupReturnsWavelets() throws Exception { Pair<DeltaStore,WaveletDeltaRecord> pair = newDeltaStoreWithRecord(WAVE1_WAVELET1); DeltaStore store = pair.first; assertEquals(ImmutableSet.of(WAVE1_WAVELET1.waveletId), store.lookup(WAVE1_WAVELET1.waveId)); }
public void testLookupReturnsWavelets() throws Exception { Pair<DeltaStore,WaveletDeltaRecord> pair = newDeltaStoreWithRecord(WAVE1_WAVELET1); DeltaStore store = pair.first; assertEquals(ImmutableSet.of(WAVE1_WAVELET1.waveletId), store.lookup(WAVE1_WAVELET1.waveId)); }
public void testLookupDoesNotReturnDeletedWavelets() throws Exception { Pair<DeltaStore, WaveletDeltaRecord> pair = newDeltaStoreWithRecord(WAVE1_WAVELET1); DeltaStore store = pair.first; store.delete(WAVE1_WAVELET1); assertTrue(store.lookup(WAVE1_WAVELET1.waveId).isEmpty()); }
public void testLookupDoesNotReturnDeletedWavelets() throws Exception { Pair<DeltaStore, WaveletDeltaRecord> pair = newDeltaStoreWithRecord(WAVE1_WAVELET1); DeltaStore store = pair.first; store.delete(WAVE1_WAVELET1); assertTrue(store.lookup(WAVE1_WAVELET1.waveId).isEmpty()); }
public void testLookupDoesNotReturnEmptyWavelets() throws Exception { DeltaStore store = newDeltaStore(); DeltasAccess wavelet = store.open(WAVE1_WAVELET1); wavelet.close(); assertTrue(store.lookup(WAVE1_WAVELET1.waveId).isEmpty()); }
public void testLookupDoesNotReturnEmptyWavelets() throws Exception { DeltaStore store = newDeltaStore(); DeltasAccess wavelet = store.open(WAVE1_WAVELET1); wavelet.close(); assertTrue(store.lookup(WAVE1_WAVELET1.waveId).isEmpty()); }