Qpid
  1. Qpid
  2. QPID-3751

Add Unit/System Testing to JCA Component

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17
    • Component/s: JCA
    • Labels:
      None
    • Environment:

      All OS platforms, all JEE supported platforms.

      Description

      Currently the JCA component/code lacks any unit testing as well as any integration testing. Further, the necessary configuration isn't in place to allow for this to work as it stand today. Originally we were using our internal TCK in conjunction with the JCA examples to test the adapter. It was initially thought that the requirement of a running application server was a 'must have' and introducing this requirement into the test framework would be too disruptive.

      I have had time (finally) to reconsider this. Being that we provide a non-managed (i.e. non JEE) javax.resource.spi.ConnectionManager there is a good amount of unit testing we can do, as we as being able to provide contributions to the system tests. Further, for certain tests that require app server functionality, simple mock objects can be useful. While we only officially support the C++ broker for JCA, this shouldn't impede unit or system testing as the Java broker is sufficient to at least cover a majority of our test cases. For those future tests that actually require the C++ broker we can use the excludes mechanism and address this need at that time.

      1. QPID-3751.patch
        11 kB
        Weston M. Price

        Activity

        Rob Godfrey made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 0.17 [ 12320179 ]
        Fix Version/s 0.15 [ 12319043 ]
        Resolution Fixed [ 1 ]
        Rob Godfrey made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Weston M. Price made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s Future [ 12315490 ]
        Resolution Fixed [ 1 ]
        Keith Wall made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Weston M. Price made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Weston M. Price made changes -
        Attachment jca-testing.patch [ 12510258 ]
        Weston M. Price made changes -
        Attachment QPID-3751.patch [ 12516954 ]
        Weston M. Price made changes -
        Fix Version/s 0.15 [ 12319043 ]
        Fix Version/s Future [ 12315490 ]
        Weston M. Price made changes -
        Field Original Value New Value
        Attachment jca-testing.patch [ 12510258 ]
        Weston M. Price created issue -

          People

          • Assignee:
            Weston M. Price
            Reporter:
            Weston M. Price
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development