7 Replies Latest reply on Dec 14, 2007 9:03 AM by pmuir

    Seam examples tests

    alesj

      FYI: http://jira.jboss.com/jira/browse/JBAS-5064

      I added base SeamExampleTestCase and an actual example usage - Seam Booking example application.

      TODO (seam.xml):

      The Seam example artifacts are pulled from Seam's maven2 snapshot repo, and copied to testsuite/output/lib.
      They are then picked up by the actual test.
      Currently they simply test if the example is fully deployed.

      Should we make this pulling from repo optional?
      Or at least there must be a check if the artifact changed.
      Since the example artifacts are ~ 4M big.

      Scott or Pete, can you help with this seam.xml?

        • 1. Re: Seam examples tests
          pmuir

           

          "alesj" wrote:
          Should we make this pulling from repo optional?
          Or at least there must be a check if the artifact changed.
          Since the example artifacts are ~ 4M big.


          Probably, you should compare the checksums that maven generates for the ear (md5 and sha1) between each download.

          Also, as Seam version changes, the path to the artifact changes e.g. from 2.0.1-SNAPSHOT to 2.0.2-SNAPSHOT. The maven-metadata.xml file will tell you the current version.

          Scott or Pete, can you help with this seam.xml?


          <!-- TODO copy from repository to ${build.lib} -->
          <!-- include the example + -ds.xml file -->
          <!-- remove version string tag -->
          <!-- make copying optional or/and check for artifact modifications -->


          By far the easiest way is to use maven ant tasks as it will do all of the above in about 6 lines of ant. But I don't know if this is an acceptable dependency for JBoss AS testsuite. Otherwise we have to write some horrible ant stuff.

          I now have some decent ant in seam (hudson) builds to deploy example snapshots to maven, so if you want more than booking, numberguess, dvdstore then tell me and I can add them.

          • 2. Re: Seam examples tests
            starksm64

             

            "pete.muir@jboss.org" wrote:

            By far the easiest way is to use maven ant tasks as it will do all of the above in about 6 lines of ant. But I don't know if this is an acceptable dependency for JBoss AS testsuite. Otherwise we have to write some horrible ant stuff.

            Paul has been working on getting jbossas to build using maven, so its not a problem to start introducing maven dependencies.


            • 3. Re: Seam examples tests
              wolfc

              And thus we'll have a circular dependency when Seam goes into EAP. Because currently EAP == AS instead of icing on top.

              • 4. Re: Seam examples tests
                alesj

                Moved this comment from JIRA:

                "dimitris@jboss.org" wrote:

                Ales, is this done?


                • 5. Re: Seam examples tests
                  alesj

                  Pete has all things ready - seam.xml and Seam repo with example artifacts.
                  But he's still at Javapolis, with world's slowest internet, so he has problems commiting things.
                  And I know Carlo has some patch working for fixing those CL problems.

                  • 6. Re: Seam examples tests
                    pmuir

                    Ok, I have comitted seam.xml - sorry for the delay :(

                    Currently it loads the seam numberguess, booking and dvdstore examples from Seam 2.0.1.CR1.

                    • 7. Re: Seam examples tests
                      pmuir

                       

                      "wolfc" wrote:
                      And thus we'll have a circular dependency when Seam goes into EAP. Because currently EAP == AS instead of icing on top.


                      I don't quite see how? This is just some ear artifacts that are downloaded and deployed by the testsuite. Seam isn't embedded into EAP or AS5, just provided as a user library.