Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1022

HtmlMessage and HtmlMessages fails unit test when using RI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.6, 1.1.7-SNAPSHOT
    • 1.1.7
    • Message(s)
    • None

    Description

      Below are output from the test failures. The test are run using the following command:

      cd tomahawk/core
      mvn test -Djsf=ri

      -------------------------------------------------------------------------------
      Test set: org.apache.myfaces.component.html.ext.HtmlMessagesTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.094 sec <<< FAILURE!
      testDefaultRenderer(org.apache.myfaces.component.html.ext.HtmlMessagesTest) Time elapsed: 0.032 sec <<< ERROR!
      java.lang.IllegalStateException: Parent was not null, but this component not related
      at javax.faces.component.UIComponentBase.eraseParent(UIComponentBase.java:457)
      at javax.faces.component.UIComponentBase.access$500(UIComponentBase.java:76)
      at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:1496)
      at org.apache.myfaces.component.html.ext.HtmlMessagesTest.testDefaultRenderer(HtmlMessagesTest.java:66)

      -------------------------------------------------------------------------------
      Test set: org.apache.myfaces.component.html.ext.HtmlMessageTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.031 sec <<< FAILURE!
      testDefaultRenderer(org.apache.myfaces.component.html.ext.HtmlMessageTest) Time elapsed: 0 sec <<< ERROR!
      java.lang.IllegalStateException: Parent was not null, but this component not related
      at javax.faces.component.UIComponentBase.eraseParent(UIComponentBase.java:457)
      at javax.faces.component.UIComponentBase.access$500(UIComponentBase.java:76)
      at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:1496)
      at org.apache.myfaces.component.html.ext.HtmlMessageTest.testDefaultRenderer(HtmlMessageTest.java:66)

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            paulsp Paul Spencer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: