Hi Luigi, great job, I'm a big fan of dbunit.
I have some questions: why do you need @DatabaseTest annotation, only @DatabaseSetup wouldn't be sufficient? do you plan to support other dataset types like yml or json? There is a way to execute scripts before and after the test? I see that we can attach replacers however a common use case is to use relative dates in datasets, there is plan for a built in datetime replacer? I already have implemented some of the items above and can contribute if you have interest. thank you for porting it to deltaspike! 2016-02-16 15:18 GMT-02:00 Gerhard Petracek <[email protected]>: > hi luigi, > > it's great that you share it with the community! > we can link it in our documentation! > > regards, > gerhard > > > > 2016-02-16 11:40 GMT+01:00 Luigi Bitonti <[email protected]>: > > > Hi All, > > > > I've released recently a library that allows integration between > > Deltaspike TestControl and DBUnit. It allows, using simple annotations, > to > > setup and teardown database tables as well as checking expected table > > contents once a test completes. > > > > Basically something like: > > > > > > @DatabaseTest@DatabaseSetup("../setup-db.xml") > > .... > > @ExpectedDatabase(value = "extra_and_default_category-expected.xml", > > assertionMode = DatabaseAssertionMode.NON_STRICT_UNORDERED) > > > > > > More information is available at: > > > > http://lbitonti.github.io/deltaspike-dbunit/ > > https://github.com/lbitonti/deltaspike-dbunit > > > > > > It's essentially a port of springtest-dbunit, for those familiar with it, > > to cdi/deltaspike. > > Hopefully it will be useful to other people as well. Feedback welcome. > > > > Cheers, > > Luigi > > > -- <http://www.advancedit.com.br/>Att, Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul http://rpestano.wordpress.com/ @realpestano <https://twitter.com/realpestano>
