@Test public void testGetAllDrugInventories() { List<DrugInventory> allDrugInventories = dao.getAllDrugInventories(); assertEquals(allDrugInventories.size(), 1); }
public List<DrugInventory> getAllDrugInventories() throws DAOException { Criteria criteria = sessionFactory.getCurrentSession().createCriteria(DrugInventory.class); return criteria.list(); }
HibernateDrugInventoryDAO implements DrugInventoryDAO { public List<DrugInventory> getAllDrugInventories() throws DAOException { Criteria criteria = sessionFactory.getCurrentSession().createCriteria(DrugInventory.class); return criteria.list(); } }
HibernateDrugInventoryDAO implements DrugInventoryDAO { public List<DrugInventory> getAllDrugInventories() throws DAOException { Criteria criteria = sessionFactory.getCurrentSession().createCriteria(DrugInventory.class); return criteria.list(); }  }
HibernateDrugInventoryDAO implements DrugInventoryDAO { public List<DrugInventory> getAllDrugInventories() throws DAOException { Criteria criteria = sessionFactory.getCurrentSession().createCriteria(DrugInventory.class); return criteria.list(); }  void setSessionFactory(SessionFactory sessionFactory); DrugInventory saveDrugInventory(DrugInventory drugInventory); void deleteDrugInventory(DrugInventory drugInventory); DrugInventory getDrugInventoryByUuid(String uuid); List<DrugInventory> getAllDrugInventories(); List<DrugInventory> getAllDrugInventoriesByStatus(String status); DrugInventory updateDrugInventory(DrugInventory drugInventory); List<DrugInventory> getDrugInventoryByProvider(Integer providerId); @Override List<DrugInventory> getDrugInventoriesByLocation(Integer location); @Override List<DrugInventory> getDrugInventoriesByDrugPurchaseOrder(Integer drugPurchaseOrderId); }
HibernateDrugInventoryDAO implements DrugInventoryDAO { public List<DrugInventory> getAllDrugInventories() throws DAOException { Criteria criteria = sessionFactory.getCurrentSession().createCriteria(DrugInventory.class); return criteria.list(); }  void setSessionFactory(SessionFactory sessionFactory); DrugInventory saveDrugInventory(DrugInventory drugInventory); void deleteDrugInventory(DrugInventory drugInventory); DrugInventory getDrugInventoryByUuid(String uuid); List<DrugInventory> getAllDrugInventories(); List<DrugInventory> getAllDrugInventoriesByStatus(String status); DrugInventory updateDrugInventory(DrugInventory drugInventory); List<DrugInventory> getDrugInventoryByProvider(Integer providerId); @Override List<DrugInventory> getDrugInventoriesByLocation(Integer location); @Override List<DrugInventory> getDrugInventoriesByDrugPurchaseOrder(Integer drugPurchaseOrderId);  }