@Test public void testDelete() throws SQLException { PreparedStatement deletePreparedStatement = doDelete("key"); Mockito.verify(deletePreparedStatement, Mockito.atLeastOnce()).execute(); Mockito.verify(deletePreparedStatement).setString(Mockito.eq(1), Mockito.eq("key")); }
@Override public void delete(String path) { dataStore.delete(path); cache.invalidate(defaultKey(path)); }
CachedSpawnDataStore implements SpawnDataStore { @Override public void delete(String path) { dataStore.delete(path); cache.invalidate(defaultKey(path)); } }
CachedSpawnDataStore implements SpawnDataStore { @Override public void delete(String path) { dataStore.delete(path); cache.invalidate(defaultKey(path)); } CachedSpawnDataStore(SpawnDataStore dataStore, long dataStoreCacheSize); }
CachedSpawnDataStore implements SpawnDataStore { @Override public void delete(String path) { dataStore.delete(path); cache.invalidate(defaultKey(path)); } CachedSpawnDataStore(SpawnDataStore dataStore, long dataStoreCacheSize); @Override String getDescription(); @Override String get(String path); @Override Map<String, String> get(String[] paths); @Override void put(String path, String value); @Override void putAsChild(String parent, String childId, String value); @Override String getChild(String parent, String childId); @Override void deleteChild(String parent, String childId); @Override void delete(String path); @Override List<String> getChildrenNames(String path); @Override Map<String, String> getAllChildren(String path); @Override void close(); }
CachedSpawnDataStore implements SpawnDataStore { @Override public void delete(String path) { dataStore.delete(path); cache.invalidate(defaultKey(path)); } CachedSpawnDataStore(SpawnDataStore dataStore, long dataStoreCacheSize); @Override String getDescription(); @Override String get(String path); @Override Map<String, String> get(String[] paths); @Override void put(String path, String value); @Override void putAsChild(String parent, String childId, String value); @Override String getChild(String parent, String childId); @Override void deleteChild(String parent, String childId); @Override void delete(String path); @Override List<String> getChildrenNames(String path); @Override Map<String, String> getAllChildren(String path); @Override void close();  }