we implementing application jboss 7.1.1, building maven. tried arquillian integration testing small tests on persistence layer build-pack-deploy roundtrip slow. in fact, expect team members tying avoid unit testing. faster, implement simple junit-tests. in former projects, did this, don't know, clue run.
i sure, many projects kind of leightweight testing.
does have simple, up-to-date cheklist setup infrastructure (especially maven-dependencies) , simple test example? have place persistence.xml tests , how configure data base connection?
cu, thomas
you consider creating in-memory hsql, h2 or derby database , test persistence layer against database. make sure test database has up-to-date schema, either use liquibase (you can use update real database well) or dbunit.
if place persistence.xml
testing in src/test/resources
, should override version resides in src/main/resources
. way can make configuration changes (for example, skip connection pooling , use in-memory database instead of whatever database use).
after tests have ran , jvm has shutdown, database thrown away automatically.
Comments
Post a Comment