dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #02758
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.
Lars