@Test public void deleteEntityById() { mongoDao.deleteById(mockedEntity.getId()); assertEquals("The datastore should have zero entities after the delete", 0, fongoRule.getDB("streamflow").getCollection("test").count()); }
@Override public void deleteById(ID id) { datastore.delete(persistentClass, id); }
MongoDao implements GenericDao<T, ID> { @Override public void deleteById(ID id) { datastore.delete(persistentClass, id); } }
MongoDao implements GenericDao<T, ID> { @Override public void deleteById(ID id) { datastore.delete(persistentClass, id); } @Inject  MongoDao(Datastore datastore, Class<T> persistentClass); }
MongoDao implements GenericDao<T, ID> { @Override public void deleteById(ID id) { datastore.delete(persistentClass, id); } @Inject  MongoDao(Datastore datastore, Class<T> persistentClass); @Override boolean exists(ID id); @Override List<T> findAll(); @Override T findById(ID id); @Override T save(T entity); @Override T update(T entity); @Override void delete(T entity); @Override void deleteById(ID id); Query<T> query(); }
MongoDao implements GenericDao<T, ID> { @Override public void deleteById(ID id) { datastore.delete(persistentClass, id); } @Inject  MongoDao(Datastore datastore, Class<T> persistentClass); @Override boolean exists(ID id); @Override List<T> findAll(); @Override T findById(ID id); @Override T save(T entity); @Override T update(T entity); @Override void delete(T entity); @Override void deleteById(ID id); Query<T> query();  }