dennis hoersch created MYFACESTEST-62:
-----------------------------------------

             Summary: make composite components testable
                 Key: MYFACESTEST-62
                 URL: https://issues.apache.org/jira/browse/MYFACESTEST-62
             Project: MyFaces Test
          Issue Type: Improvement
          Components: Mock Objects
    Affects Versions: 1.0.4
         Environment: MyFaces 2.1.6
            Reporter: dennis hoersch
            Priority: Trivial


May it be possible to move 'FaceletTestCase.java' 
('/myfaces/core/trunk/impl/src/test/java/org/apache/myfaces/view/facelets/FaceletTestCase.java')
 from internal MyFaces to the MyFaces Test project?

Additionally there are some lines commented out which will enable the testing 
of composite components. If I uncomment them I get some compilation errors. 
With the three patched (and attached) classes they disappear and I'm able to 
test a simple facelets page with a composite component used in it successfully.

The xhtml has a namespace declaration like:
    xmlns:jsftests="http://java.sun.com/jsf/composite/components";
And the composite is in 'resources/components/' relative to the JUnit test.

----

Additionally it might be more readable (?) to set the 'servletPath' and the 
'pathInfo' on the internal request object like:

    request.setPathElements(
        context.getPath(),
        getClass().getSimpleName(),
        "/" + name.getMethodName(),
        context.getQuery());
where name is:
    @Rule public TestName name = new TestName();


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to