[aerogear-dev] UPS unit tests

Erik Jan de Wit edewit at redhat.com
Wed Jan 21 10:40:38 EST 2015


Hi,

The database unit tests of the UPS contain a lot of setup code as setting up the database is done within the test method. I’m proposing to remove this ‘noise’ from the test and put it in a separate file. Another thing that is setting up the dao's, when we use arquillian weld container we can use injection in our tests to further reduce the boilerplate, have a look at an example:

https://github.com/edewit/aerogear-unifiedpush-server/blob/4bb63adce319df25e8e77d505f2844cf80ff5644/model/jpa/src/test/java/org/jboss/aerogear/unifiedpush/jpa/PushApplicationDaoTest.java

If you like I could do this for all these tests.

Cheers,
	Erik Jan 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20150121/d0b39cc9/attachment.html 


More information about the aerogear-dev mailing list