I am trying to get a junit test with CDI / Weld and JEINIT. I get this message at startup:
18 9 [main] information org.jboss.weld.bootstrap - WELD-000101 Transaction related services are not available. Injection @ injection usertranslation is not available. The transaction supervisors will be implemented synchronously. Later, when I call em.flush () , the Antitimenor fails because they Is the transaction expected to be active, is there a light transaction implementation that I can use for a Junket test? EDIT:
I ended up using the Gisserner. It's pretty cool ...
You can use in unit tests, it should work as expected.
But : As soon as you need a transaction (aka "platform service") in the trial, I'll call it integration test < / Em> - In this situation I recommend using light weight on-for container testing. You will be able to test against your own infrastructure , and for example use a real world setup. transaction. Update : Ignore that you are already using JEinet, my answer becomes very obsolete ...
Comments
Post a Comment