@Test public void testGetExceptionHappens() throws Exception { exception.expect(RedirectorDataSourceException.class); setupExceptionOnGetOne(new RedirectorDataSourceException("Test")); testee.get(); }
@Override public T get() { try { return deserializeOrReturnNull(getCache().getCurrentData()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } }
SimpleDAO extends BaseDAO<T> implements ISimpleDAO<T>, ICacheableDAO { @Override public T get() { try { return deserializeOrReturnNull(getCache().getCurrentData()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } } }
SimpleDAO extends BaseDAO<T> implements ISimpleDAO<T>, ICacheableDAO { @Override public T get() { try { return deserializeOrReturnNull(getCache().getCurrentData()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } } SimpleDAO(Class<T> clazz,
                     Serializer marshalling,
                     IDataSourceConnector connector,
                     IPathHelper pathHelper,
                     boolean compressed,
                     boolean useCache); }
SimpleDAO extends BaseDAO<T> implements ISimpleDAO<T>, ICacheableDAO { @Override public T get() { try { return deserializeOrReturnNull(getCache().getCurrentData()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } } SimpleDAO(Class<T> clazz,
                     Serializer marshalling,
                     IDataSourceConnector connector,
                     IPathHelper pathHelper,
                     boolean compressed,
                     boolean useCache); @Override T get(); @Override void save(T data); @Override void addCacheListener(ICacheListener listener); @Override synchronized void rebuildCache(); @Override void close(); }
SimpleDAO extends BaseDAO<T> implements ISimpleDAO<T>, ICacheableDAO { @Override public T get() { try { return deserializeOrReturnNull(getCache().getCurrentData()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } } SimpleDAO(Class<T> clazz,
                     Serializer marshalling,
                     IDataSourceConnector connector,
                     IPathHelper pathHelper,
                     boolean compressed,
                     boolean useCache); @Override T get(); @Override void save(T data); @Override void addCacheListener(ICacheListener listener); @Override synchronized void rebuildCache(); @Override void close();  }