Tapestry
  1. Tapestry
  2. TAPESTRY-1933

Setup infrastructure for integration tests in tapestry-hibernate

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.11
    • Component/s: tapestry-hibernate
    • Labels:
      None

      Description

      Would like to start submitting some integration tests around tapestry-hibernate, but need some infrastructure to be in place first.
      Patch follows.

        Activity

        Hide
        lasitha ranatunga added a comment -

        Sets up integration testing infrastructure for tapestry-hibernate.
        Tested against rev: 598142.

        The changes are mostly based on the setup in tapestry-core and tapestry-spring. They include:

        • An additional <test> in testng.xml pointing to the integration test package.
        • A new subclass of AbstractIntegrationTestSuite that doesn't contain any tests yet.
        • The skeleton of a test webapp:
        • An empty AppModule that pulls in the HibernateModule via an @SubModule annotation,
        • A Start page, webdefault.xml and web.xml
        • A create-drop directive in hibernate.cfg.xml so the hsql db will be available for tests.
        • Marking the Id property of the User class as an @GeneratedValue.

        Note: this patch was generated by StGit and has a slightly different format to svn diff. Its still standard GNU patch compatible so i'm hopeful that it won't cause trouble.

        Of course, feedback appreciated.

        Show
        lasitha ranatunga added a comment - Sets up integration testing infrastructure for tapestry-hibernate. Tested against rev: 598142. The changes are mostly based on the setup in tapestry-core and tapestry-spring. They include: An additional <test> in testng.xml pointing to the integration test package. A new subclass of AbstractIntegrationTestSuite that doesn't contain any tests yet. The skeleton of a test webapp: An empty AppModule that pulls in the HibernateModule via an @SubModule annotation, A Start page, webdefault.xml and web.xml A create-drop directive in hibernate.cfg.xml so the hsql db will be available for tests. Marking the Id property of the User class as an @GeneratedValue. Note: this patch was generated by StGit and has a slightly different format to svn diff. Its still standard GNU patch compatible so i'm hopeful that it won't cause trouble. Of course, feedback appreciated.

          People

          • Assignee:
            Dan Adams
            Reporter:
            lasitha ranatunga
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development