@Test public void testGetDrugGroupByNameShouldReturnDrugGroup() { String name = "TestDrugGroup1"; String result = s.getDrugGroupByName(name).get(0).getName(); assertEquals(name, result); }
@Override public List<DrugGroup> getDrugGroupByName(String name) { return dao.getDrugGroupByName(name); }
DrugGroupServiceImpl implements DrugGroupService { @Override public List<DrugGroup> getDrugGroupByName(String name) { return dao.getDrugGroupByName(name); } }
DrugGroupServiceImpl implements DrugGroupService { @Override public List<DrugGroup> getDrugGroupByName(String name) { return dao.getDrugGroupByName(name); }  }
DrugGroupServiceImpl implements DrugGroupService { @Override public List<DrugGroup> getDrugGroupByName(String name) { return dao.getDrugGroupByName(name); }  @Override void setDrugGroupDAO(DrugGroupDAO dao); @Override DrugGroup saveDrugGroup(DrugGroup drugGroup); @Override DrugGroup getDrugGroup(Integer id); @Override List<DrugGroup> getDrugGroupByName(String name); @Override DrugGroup getDrugGroupByUuid(String uuid); @Override List<DrugGroup> getAllDrugGroup(boolean includeRetired); @Override DrugGroup updateDrugGroup(DrugGroup drugGroup); @Override void deleteDrugGroup(DrugGroup drugGroup); @Override void onStartup(); @Override void onShutdown(); }
DrugGroupServiceImpl implements DrugGroupService { @Override public List<DrugGroup> getDrugGroupByName(String name) { return dao.getDrugGroupByName(name); }  @Override void setDrugGroupDAO(DrugGroupDAO dao); @Override DrugGroup saveDrugGroup(DrugGroup drugGroup); @Override DrugGroup getDrugGroup(Integer id); @Override List<DrugGroup> getDrugGroupByName(String name); @Override DrugGroup getDrugGroupByUuid(String uuid); @Override List<DrugGroup> getAllDrugGroup(boolean includeRetired); @Override DrugGroup updateDrugGroup(DrugGroup drugGroup); @Override void deleteDrugGroup(DrugGroup drugGroup); @Override void onStartup(); @Override void onShutdown();  }