// @Test public void testRemoveAll() throws SQLException { List<Spread> spreadList = dao.getAllByFlockId(flockId); for (Spread g : spreadList) { dao.remove(g.getId()); } spreadList = dao.getAllByFlockId(flockId); assertEquals(0, spreadList.size()); }
// @Test public void testRemove() throws SQLException { dao.remove(spread.getId()); spread = dao.getById(flockId); assertNull(spread); }