Ask questions and see you at August, 3rd, 8.PM. CET: https://vimeo.com/event/154379
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions.
Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
We have following setup:
An abstract GenericDAO class which provides general methods like
find()
and theEntityManager
which it gets injected. TheEnitiyManager
is produced by a producer class using@Produces
. Then each concrete DAO class extends the abstract one and therefor only needs to implements its concrete context base methods to create queries (using CriteriaAPI) and execute them using the inheritedEnitiyManager
.Now we are struggling how to test those classes / our queries to see if they are returning the correct / expected values. I don't want to test the service which uses the DAO classes, there I can use mocks, but I want to test our queries. Of course the database can be a real one or a containerized using
testcontainers
thats not the point.If I understand you right, that's exactly a case to use Arquillian to get the CDI and TX context done, am I?