Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1297

Parameter rule Junit parametrized workaround execution error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • persistence_1.0.0.Alpha5
    • None
    • Hide

      (1) Set up a domain in Glassfish 3.1.2
      (2) Insert mysql-connector-java-5.1.21-bin.jar and log4j-1.2.16.jar
      into Glassfish 3.1.2 domain lib directory
      (3) Download and extract ArquillianTest3.tar.gz archive
      (4) run ArquillianTest3/db-scripts/mysql/ scripts to create and
      set up MySQL database table
      (5) configure pom.xml "localhost-test" profile
      (5) Run into ArquillianTest3 project directory:
      mvn -Plocalhost-test -Dtest=it.arquilliantest.jpa.controller.ActionJpaControllerParametricTest test

      Show
      (1) Set up a domain in Glassfish 3.1.2 (2) Insert mysql-connector-java-5.1.21-bin.jar and log4j-1.2.16.jar into Glassfish 3.1.2 domain lib directory (3) Download and extract ArquillianTest3.tar.gz archive (4) run ArquillianTest3/db-scripts/mysql/ scripts to create and set up MySQL database table (5) configure pom.xml "localhost-test" profile (5) Run into ArquillianTest3 project directory: mvn -Plocalhost-test -Dtest=it.arquilliantest.jpa.controller.ActionJpaControllerParametricTest test

    Description

      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 everything 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.

      Attachments

        Issue Links

          Activity

            People

              bartosz-1 Bartosz Majsak
              mcella_jira Marco Cella (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: