[
https://issues.apache.org/jira/browse/MYFACESTEST-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887665#action_12887665
]
Leonardo Uribe commented on MYFACESTEST-13:
-------------------------------------------
The current implementation of MockResource and MockResourceHandler is correct
but it is too simple to be used on our test cases (AbstractJsfTestCase). We
need something more powerful, in a similar way as we have on myfaces core but
removing all stuff that doesn't matter for a mock class.
The proposal is rename the current implementation of MockResource and
MockResourceHandler to MockSimpleResource and MockSimpleResourceHandler and
provide an implementation that could be included on AbstractJsfTestCase. The
proposed one will work as the default one in core (search for resources using
external context and the classloader provided).
If no objections I'll commit this patch soon.
> MockResource must implement all its methods
> -------------------------------------------
>
> Key: MYFACESTEST-13
> URL: https://issues.apache.org/jira/browse/MYFACESTEST-13
> Project: MyFaces Test
> Issue Type: Task
> Components: Mock Objects
> Reporter: Leonardo Uribe
> Assignee: Leonardo Uribe
> Attachments: MYFACESTEST-13.patch
>
>
> getRequestPath() throws UnsupportedOperationException, but many renderer
> tests requires it. getResponseHeaders() could return an empty map by default
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.