Generic testing

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.