Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-230

Failing Unit Tests in Mavenized version of the module

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: HTML Form Entry 1.8.0
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      In the mavenized version of the module there are four unit tests failing with the same error:

      Tests run: 31, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 13.494 sec <<< FAILURE!
      testSubmitButtonLabelAndStyle(org.openmrs.module.htmlformentry.RegressionTest) Time elapsed: 0.499 sec <<< ERROR!
      java.lang.AbstractMethodError: org.apache.xerces.dom.DeferredDocumentImpl.getXmlStandalone()Z

      I believe this we need to include the appropriate XML transform library in the test scope. When I add the following dependency to the omod pom, 2 of the 4 tests pass:

      <dependency>
      <groupId>xalan</groupId>
      <artifactId>xalan</artifactId>
      <version>2.7.1</version>
      <scope>test</scope>
      </dependency>

      If I comment out HtmlFormEntryUtil:250, all the tests pass. So it seems to really be about making sure the correct TransformerFactory is avaiable.

        Attachments

          Activity

            People

            Assignee:
            mogoodrich Mark Goodrich
            Reporter:
            mogoodrich Mark Goodrich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: