myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Korherr (JIRA)" <j...@apache.org>
Subject [jira] Updated: (MYFACESTEST-4) Unable to call setValue of ValueExpression in test
Date Mon, 15 Mar 2010 17:55:27 GMT

     [ https://issues.apache.org/jira/browse/MYFACESTEST-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jakob Korherr updated MYFACESTEST-4:
------------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> Unable to call setValue of ValueExpression in test
> --------------------------------------------------
>
>                 Key: MYFACESTEST-4
>                 URL: https://issues.apache.org/jira/browse/MYFACESTEST-4
>             Project: Apache MyFaces Test
>          Issue Type: Bug
>         Environment: See attached JUnit test case which fails with myfaces-test20-1.0.0-SNAPSHOT
> Tested with Mojarra-2.0.2
>            Reporter: Christoph Göldner
>            Assignee: Jakob Korherr
>         Attachments: MockApplication12.patch, ValueExpressionTest.java
>
>
> Components tested inside a test case inherited from AbstractJsfTestCase are not able
to do following:
>   ELContext elContext = facesContext.getELContext();
>   ValueExpression ve = application.getExpressionFactory().createValueExpression(elContext,
"#{foo}", String.class);
>   ve.setValue(elContext, "BAR");
> The error is caused by the FacesResourceBundleELResolver inside the setValue method,
where it tries to get a ResourceBundle from MockApplication12 for the given ValueExpression.
Unfortunately the MockApplication12 getResourceBundle method throws a MissingResourceException
instead of returning null.
> Please apply attached patch to the code base.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message