@Test(expected = RedirectorDataSourceException.class) public void testDeleteByIdExceptionHappens() throws Exception { String path = "/path"; setupPathHelperReturn(path); setupExceptionOnDelete(new RedirectorDataSourceException(new Exception())); testee.deleteById(ANY_ID); }
@Override public void deleteById(String id) { try { super.deleteByPath(pathHelper.getPath(id), getCache()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } }
ListDAO extends BaseListDAO<T> implements IListDAO<T> { @Override public void deleteById(String id) { try { super.deleteByPath(pathHelper.getPath(id), getCache()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } } }
ListDAO extends BaseListDAO<T> implements IListDAO<T> { @Override public void deleteById(String id) { try { super.deleteByPath(pathHelper.getPath(id), getCache()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } } ListDAO(Class<T> clazz,
                   Serializer marshalling,
                   IDataSourceConnector connector,
                   IPathHelper pathHelper,
                   boolean isCompressed,
                   boolean useCache); }
ListDAO extends BaseListDAO<T> implements IListDAO<T> { @Override public void deleteById(String id) { try { super.deleteByPath(pathHelper.getPath(id), getCache()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } } ListDAO(Class<T> clazz,
                   Serializer marshalling,
                   IDataSourceConnector connector,
                   IPathHelper pathHelper,
                   boolean isCompressed,
                   boolean useCache); @Override List<T> getAll(); @Override List<String> getAllIDs(); @Override T getById(String id); @Override void saveById(T data, String id); @Override void deleteById(String id); @Override void addCacheListener(ICacheListener listener); }
ListDAO extends BaseListDAO<T> implements IListDAO<T> { @Override public void deleteById(String id) { try { super.deleteByPath(pathHelper.getPath(id), getCache()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } } ListDAO(Class<T> clazz,
                   Serializer marshalling,
                   IDataSourceConnector connector,
                   IPathHelper pathHelper,
                   boolean isCompressed,
                   boolean useCache); @Override List<T> getAll(); @Override List<String> getAllIDs(); @Override T getById(String id); @Override void saveById(T data, String id); @Override void deleteById(String id); @Override void addCacheListener(ICacheListener listener);  }