Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1331

JBossWebParsingDeploymentProcessorTest fails if ran after any WebSubsystemTestCase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • None
    • Web (Undertow)
    • None

      The order in which the tests run seem to be an issue. My assumption is it has something to do with powermock, but I didn't dig in all that much.

      Caused by: java.lang.ClassCastException: __redirected.__XMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
      	at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:153)
      	at __redirected.__XMLInputFactory.<clinit>(__XMLInputFactory.java:67)
      

      The tests for me on Fedora 18 run in the following order:

      Running org.jboss.as.web.test.WebSubsystemTestCase
      Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.42 sec
      Running org.jboss.as.web.test.WebSubsystemBareTestCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 sec
      Running org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessorTest
      Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 3.423 sec <<< FAILURE!
      Running org.jboss.as.web.deployment.WarDeploymentProcessorTest
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.932 sec
      

              Unassigned Unassigned
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: