3 Replies Latest reply on Nov 7, 2012 6:12 AM by paul.robinson

    Arquillian Transaction Extension

    tomjenkinson

      Hi guys,

       

      First of all congratulations on your 1.0.0.Alpha2 release of the ATE! I was just wondering if you had produced any quickstarts for this functionality to show how to get started with it?

       

      Thanks,

      Tom

        • 1. Re: Arquillian Transaction Extension
          aslak

          No quickstarts yet.

           

          Currently the Transaction Extension doesn't do much within the scope of testing special transaction cases, it's only a Declarative API (similar to @TransactionManagement) that binds a TransactionProvider's lifecycle to the Test lifecycle. e.g.

           

           

          @Test @Transactional(manager = "MyManager", value = TransactionMode.Commit)
          public shouldDoSomething() {}
          

           

          This will lookup "MyManager" from the TransactionProvider SPI and execute commit after Test is executed. Similar there is Rollback and Disabled TransactionModes.

           

          We did find a silly bug in Alpha2 which cause the TransactionProvider to not to work inside a container, but working on fixing that now and hopefully Alpha3 will be out today/tomorrow.

           

          Would love to have your feedback on other possible usecases/spis etc for Transactional behavior.

          • 2. Re: Arquillian Transaction Extension
            tomjenkinson

            Thanks Aslak!

            • 3. Re: Arquillian Transaction Extension
              paul.robinson

              Thanks Aslak,


              I'm taking a look at it now.

               

              Paul.