@Test public void testSave() throws Exception { String path = "/path"; String resultSerialized = "testModel"; setupPathHelperReturn(path); setupSerialize(resultSerialized); testee.save(new TestModel(ANY_ID)); verifySave(resultSerialized, path); }
@Override public void save(T data) throws SerializerException { try { save(serialize(data), pathHelper.getPath()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } }
SimpleDAO extends BaseDAO<T> implements ISimpleDAO<T>, ICacheableDAO { @Override public void save(T data) throws SerializerException { try { save(serialize(data), pathHelper.getPath()); } catch (DataSourceConnectorException e) { throw new RedirectorDataSourceException(e); } } }
SimpleDAO extends BaseDAO<T> implements ISimpleDAO<T>, ICacheableDAO { @Override public void save(T data) throws SerializerException { try { save(serialize(data), pathHelper.getPath()); } 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 void save(T data) throws SerializerException { try { save(serialize(data), pathHelper.getPath()); } 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 void save(T data) throws SerializerException { try { save(serialize(data), pathHelper.getPath()); } 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();  }