To developers, I have implemented a GenericDhisSpringTest class which can be used to test stores (DAOs) which implement the GenericStore interface. To utilize it let your test class extend GenericDhisSpringTest and implement the T[] getObjects() and String getGenericBeanId methods. Have a look at IndicatorGroupSetStoreTest in dhis-service-core for an example.
In conjunction with the HibernateGenericStore this means that one can set up and test DAOs with only a few lines of Java code + a Hibernate mapping file. Lars
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

