MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-1022

HtmlMessage and HtmlMessages fails unit test when using RI

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.6, 1.1.7-SNAPSHOT
    • Fix Version/s: 1.1.7
    • Component/s: Message(s)
    • Labels:
      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)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Paul Spencer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development