Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1779

txframework DataManagementTest does not work under emma

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.0.0.M5
    • None
    • Compensations, Testing
    • None
    • Hide

      export JBOSS_HOME=<INSERT_HOME_HERE>
      ./build.sh -f ./txframework/pom.xml -Parq,codeCoverage test

      Show
      export JBOSS_HOME=<INSERT_HOME_HERE> ./build.sh -f ./txframework/pom.xml -Parq,codeCoverage test

    Description

      There is a single txf test that does not run correctly under emma. It complains about not being able to find vladium.

      The problem appears to be that this test creates an arq deployment containing its own copy of the TXDataMap rather than trying to use the one that is deployed already in the AS and is therefore in a different classloader so can't see the shaded emma classes from the real module.

      When I modify the test to remove that class and use the txf module directly, the same as all the other tests in the txf module, it can't load the TXDM class from the module. The difference is that the TXDM is injected into test beans that are injected into the tests, rather than directly injected. I think this could be a limitation of Emma.

      Attachments

        Activity

          People

            paul.robinson@redhat.com Paul Robinson
            thjenkin@redhat.com Tom Jenkinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified