0 Replies Latest reply on Feb 13, 2013 8:36 AM by Marco Cella

    Arquillian Persistence Extension and parameter rule (parametrized)

    Marco Cella Newbie

      Hi all,


      Arquillian tests can take advantage of a useful workaround to implement a JUnit Parametrized like feature:

      look at https://issues.jboss.org/browse/ARQ-561 and https://gist.github.com/aslakknutsen/1358803 project.


      I attached a simple Maven project that try to combine Arquillian Persistence extension and the parametrized workaround.

      Without any Arquillian Persistence test annotations everyting work fine, but using Arquillian Persistence test annotations the test stop at the end of the first execution;

      no exception shown on server log and test fail with "Failed while comparing database state with provided data sets." error.



      Oracle Glassfish Server 3.1.2

      MySQL 5.1

      Hibernate 3.5.6-Final

      Ubuntu 11.10 64 bit

      Apache Maven 3.0.3

      Java version 1.6.0_26

      Arquillian Persistence extension version: 1.0.0.Alpha5