Seam 2
  1. Seam 2
  2. JBSEAM-2371

Integration testing Seam components with Maven

    Details

    • Type: Task Task
    • Status: Closed (View Workflow)
    • Priority: Critical Critical
    • Resolution: Done
    • Affects Version/s: 2.0.0.GA
    • Fix Version/s: 2.3.0.ALPHA
    • Component/s: Build, Test Harness
    • Labels:
      None
    • Environment:
      Maven 2.0.7
    • Similar Issues:
      Show 10 results 

      Description

      Various users have reported integration testing with Seam is not working in 'Mavenized' projects.

        Gliffy Diagrams

        1. jg-seamtest-1.0.tgz
          11 kB
          Jason Grant
        2. tech-stack-1.0.1.pom
          18 kB
          Hemant Saxena

          Issue Links

            Activity

            Hide
            Geoffrey De Smet added a comment -

            The seam download zip doesn't contain the embedded bootstrap jar.

            Here's the maven error when running "mvn test":
            Embedded error: Unable to download the artifact from any repository
            ...
            org.jboss.embedded:jboss-embedded-bootstrap:zip:beta3

            Where can I find this mystical jar (preferable with pom) and any chance it can be deployed to the jboss repo to make our live a bit easier?

            Show
            Geoffrey De Smet added a comment - The seam download zip doesn't contain the embedded bootstrap jar. Here's the maven error when running "mvn test": Embedded error: Unable to download the artifact from any repository ... org.jboss.embedded:jboss-embedded-bootstrap:zip:beta3 Where can I find this mystical jar (preferable with pom) and any chance it can be deployed to the jboss repo to make our live a bit easier?
            Hide
            Ben Groeneveld added a comment -

            Thanks for the great work! We've downloaded the testproject-master-JBSEAM-2371.zip, added the dependency patch Jason describes as <!-- JG added for classpath --> and this works well. Needed to up the version of TestNG to 5.8 because the @BeforeClass annotation fails otherwise. We need @BeforeClass because we use a modified SeamTest that loads only one Hibernate session factory for a group or suite. We have also added dbunit support which brings in dependency conflict for xerces, but that was resolved by adding it also to the dependencies Jason added. Note that these must appear first in order to debug with TestNG in eclipse. This is our first maven project and so far we have found a maven solution for each of our hurdles - nice.

            Show
            Ben Groeneveld added a comment - Thanks for the great work! We've downloaded the testproject-master- JBSEAM-2371 .zip, added the dependency patch Jason describes as <!-- JG added for classpath --> and this works well. Needed to up the version of TestNG to 5.8 because the @BeforeClass annotation fails otherwise. We need @BeforeClass because we use a modified SeamTest that loads only one Hibernate session factory for a group or suite. We have also added dbunit support which brings in dependency conflict for xerces, but that was resolved by adding it also to the dependencies Jason added. Note that these must appear first in order to debug with TestNG in eclipse. This is our first maven project and so far we have found a maven solution for each of our hurdles - nice.
            Hide
            Fred Bricon added a comment -

            Hi,

            FWIW, I've released seam-ear-archetype at http://code.google.com/p/open-archetypes/
            it will generate a nested multi module project, allowing you to run integration tests (i.e. using the embedded JBoss) both compatible with eclipse (m2eclipse 0.9.9 and testng plugin required) and maven.

            It's an early version, so it will assume you already created a mysql database having the same name as your main artifact, and it's targeted at running on JBoss 5. I'm currently testing JBoss Tools integration.

            regards,

            Fred Bricon

            Show
            Fred Bricon added a comment - Hi, FWIW, I've released seam-ear-archetype at http://code.google.com/p/open-archetypes/ it will generate a nested multi module project, allowing you to run integration tests (i.e. using the embedded JBoss) both compatible with eclipse (m2eclipse 0.9.9 and testng plugin required) and maven. It's an early version, so it will assume you already created a mysql database having the same name as your main artifact, and it's targeted at running on JBoss 5. I'm currently testing JBoss Tools integration. regards, Fred Bricon
            Hide
            Marek Novotny added a comment -

            this is core task for migration of Seam to Maven

            Show
            Marek Novotny added a comment - this is core task for migration of Seam to Maven
            Hide
            Marek Novotny added a comment -

            All examples except WIKI are using maven and integration testing with JBoss Embedded as in-memory container.

            Show
            Marek Novotny added a comment - All examples except WIKI are using maven and integration testing with JBoss Embedded as in-memory container.

              People

              • Assignee:
                Marek Novotny
                Reporter:
                Siarhei Dudzin
              • Votes:
                68 Vote for this issue
                Watchers:
                54 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development