Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Low
-
Description
From TODO in HibernateFormDAO.java in org.openmrs.api.db.hibernate on line 455:
Create a corresponding test to test the method getFormCriteria. The test is should be created in test.java.org.openmrs.api.db.hibernate.HibernateFormDAOTest.java which seems not to exist so it has to be created.
// TODO junit test if (!containingAnyFormField.isEmpty()) { // Convert form field persistents to integers Set<Integer> anyFormFieldIds = new HashSet<>(); for (FormField ff : containingAnyFormField) { anyFormFieldIds.add(ff.getFormFieldId()); } DetachedCriteria subquery = DetachedCriteria.forClass(FormField.class, "ff"); subquery.setProjection(Projections.property("ff.form.formId")); subquery.add(Restrictions.in("ff.formFieldId", anyFormFieldIds)); crit.add(Subqueries.propertyIn("form.formId", subquery)); }
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
TRUNK-324 Go through the TODO items code and create tickets out of them
-
- Ready for Work
-
-
TRUNK-6087 COPY: Go through the TODO items code and create tickets out of them
-
- Needs Assessment
-
-
TRUNK-6108 COPY: Go through the TODO items code and create tickets out of them
-
- Needs Assessment
-