Since we wrote this post we didn't laze around. Check our latest announcement.
The Arquillian team is proud to announce the 1.0.0.Alpha2 release of the Arquillian Transaction Extension component!
The time has come to extract the JTA transactions support from Arquillian Persistence Extension and move it over to the Transaction Extension. It was in fact quite a natural refactoring step. This opens the possibility of providing a different transaction manager to your (not only) persistence related tests. Many thanks to Jakub Narloch for bringing the Transaction Extension to life as a top level module and helping with this release!
Future releases of the Arquillian Persistence Extension will ship with the JTA extension implementation as a dependency, but the Persistence Extension API will change to the new API from the Transaction Extension. Since the Persistence Extension is using the transaction provider SPI you will be able to change the implementation without a need to adopt your test code to whatever comes in the future.
Just include this in your dependencies to leverage the JTA implementation within the container of your choice.
<dependency> <groupId>org.jboss.arquillian.extension</groupId> <artifactId>arquillian-transaction-jta</artifactId> <version>1.0.0.Alpha2</version> </dependency>
New SPI hook
TransactionEnabler interface has been introduced to the SPI. It gives the option to alternate the strategy for enabling transactions. This is particularly handy for the Persistence Extension where we automatically wrap annotations like
@ShouldMatchDataSet in a transaction. For reference you may take a look at the new SPI interface and the related tests.
That’s pretty much it! We look forward to hearing your feedback about this release in the community forums!
What is Arquillian?
Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.
|Component||Arquillian Transaction Extension|
|Version||1.0.0.Alpha2 view tag|
|Released by||Aslak Knutsen|
Published artifacts org.jboss.arquillian.extension
- org.jboss.arquillian.extension » arquillian-transaction-api jar javadoc pom
- org.jboss.arquillian.extension » arquillian-transaction-spi jar javadoc pom
- org.jboss.arquillian.extension » arquillian-transaction-impl-base jar javadoc pom
- org.jboss.arquillian.extension » arquillian-transaction-jta jar javadoc pom
- org.jboss.arquillian.extension » arquillian-transaction-bom pom
Release notes and resolved issues 6
Embedded Container and JTA support
- Feature Request
- ARQ-1069 - JTA implementation for Transaction Extension