Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-3226

Modify DBUnitSeamTest to permit use of DTDs generated by DBUnit

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.0.3.CR1
    • Fix Version/s: None
    • Component/s: Test Harness
    • Labels:
    • Environment:

      Any

      Description

      Given: DBUnit's behavior is such that if the first row to be loaded (via DataSetOperation) into a table doesn't have all columns present, those columns will be dropped in every row loaded thereafter.

      Given: If a DTD is present, DBUnit will honor it, and refrain from the aforementioned behavior. DBUnit has a facility to generate said DTD.

      Given: The current DBUnitSeamTest (for which I am grateful indeed) doesn't permit specification of said DTD's location. Hence, I must manually massage my test data to ensure that the first row loaded into each table has values for all columns, which causes considerable inconvenience in my automated testing flow (which includes data generation).

      Request: Modify DBUnitSeamTest to permit use of DTDs generated by DBUnit

        Gliffy Diagrams

          Attachments

          1. DBUnitSeamTest.java
            12 kB
          2. diff
            1 kB
          3. diff.txt
            1 kB

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                jgenoese John Genoese
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5 minutes Original Estimate - 5 minutes
                  5m
                  Remaining:
                  Time Spent - 5 minutes Remaining Estimate - 5 minutes
                  5m
                  Logged:
                  Time Spent - 5 minutes Remaining Estimate - 5 minutes
                  5m