Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 75394 invoked from network); 15 Mar 2010 21:34:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Mar 2010 21:34:39 -0000 Received: (qmail 70238 invoked by uid 500); 15 Mar 2010 21:33:51 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 70171 invoked by uid 500); 15 Mar 2010 21:33:51 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Delivered-To: moderator for dev@myfaces.apache.org Received: (qmail 44290 invoked by uid 99); 15 Mar 2010 17:51:48 -0000 X-ASF-Spam-Status: No, hits=-1016.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Message-ID: <1012364694.270071268675487416.JavaMail.jira@brutus.apache.org> Date: Mon, 15 Mar 2010 17:51:27 +0000 (UTC) From: "Jakob Korherr (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACESTEST-4) Unable to call setValue of ValueExpression in test In-Reply-To: <1511721700.262031268643087625.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MYFACESTEST-4?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 2845424#action_12845424 ]=20 Jakob Korherr commented on MYFACESTEST-4: ----------------------------------------- Thank you very much for the patch and the test case for this one and also f= or MYFACESTEST-5, Christoph. However, please try to follow the code guidelines of MyFaces in your next p= atch(es). I know, the code in MyFaces test does not really do this either, = but if we keep on committing the code in any style, it will become a bigger= mess with every commit. > 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 myface= s-test20-1.0.0-SNAPSHOT > Tested with Mojarra-2.0.2 > Reporter: Christoph G=C3=B6ldner > Assignee: Jakob Korherr > Attachments: MockApplication12.patch, ValueExpressionTest.java > > > Components tested inside a test case inherited from AbstractJsfTestCase a= re not able to do following: > ELContext elContext =3D facesContext.getELContext(); > ValueExpression ve =3D application.getExpressionFactory().createValueEx= pression(elContext, "#{foo}", String.class); > ve.setValue(elContext, "BAR"); > The error is caused by the FacesResourceBundleELResolver inside the setVa= lue method, where it tries to get a ResourceBundle from MockApplication12 f= or the given ValueExpression. Unfortunately the MockApplication12 getResour= ceBundle method throws a MissingResourceException instead of returning null= . > Please apply attached patch to the code base. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.