dadrus / jpa-unit

JUnit extension to test javax.persistence entities
Apache License 2.0
29 stars 9 forks source link

Enable seeding of a database using domain objects directly #33

Open dadrus opened 6 years ago

dadrus commented 6 years ago

The funcionality to seed the database using db specific scripts and statement is already available. It would be however very helpful if direct usage of domain objects would be possible to seed the db in a test case aware setup phase (like available with db statements and scripts) which runs in its own transaction.

It should be possible to arbitrary define the required domain object, e.g by the use of such libraries like benas/random-beans or test-data-loader and in best case having all phases as defined by @InitialDataSets