Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 35111 invoked from network); 21 Sep 2010 20:55:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Sep 2010 20:55:59 -0000 Received: (qmail 49637 invoked by uid 500); 21 Sep 2010 20:55:59 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 49584 invoked by uid 500); 21 Sep 2010 20:55:58 -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 Received: (qmail 49577 invoked by uid 99); 21 Sep 2010 20:55:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Sep 2010 20:55:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Sep 2010 20:55:56 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8LKtYJb023534 for ; Tue, 21 Sep 2010 20:55:34 GMT Message-ID: <11438718.327671285102534854.JavaMail.jira@thor> Date: Tue, 21 Sep 2010 16:55:34 -0400 (EDT) From: "Andrew Robinson (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Updated: (TRINIDAD-1861) Add implementations for getCurrentPhaseId()/setCurrentPhaseId() to MockFacesContext12 In-Reply-To: <19994449.528151279838153040.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TRINIDAD-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Robinson updated TRINIDAD-1861: -------------------------------------- Status: Resolved (was: Patch Available) Fix Version/s: 2.0.0.3-core Resolution: Fixed Applied the patch > Add implementations for getCurrentPhaseId()/setCurrentPhaseId() to MockFacesContext12 > ------------------------------------------------------------------------------------- > > Key: TRINIDAD-1861 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1861 > Project: MyFaces Trinidad > Issue Type: Bug > Components: Build > Affects Versions: 2.0.0.3-core > Environment: Windows 7, JSF 2 > Reporter: Pavitra Subramaniam > Fix For: 2.0.0.3-core > > Attachments: trinidad-patch-1861.patch > > > From Andy Schwartz: > The Trinidad unit tests use Shale Test. Shale Test's mock objects are stuck back on JSF 1.1 APIs. > We work around this by providing our own subclasses of some of these mock objects. > For the FacesContext mock object, we use Trinidad's org.apache.myfaces.trinidadbuild.test.MockFacesContext12. > MockFacesContext12 adds implementations for methods added in JSF 1.2 + 2.0. > We missed two methods: > - getCurrentPhaseId() > - setCurrentPhaseId() > Since we do not implement these methods, we end up inheriting the base implementations provided by javax.faces.context.FacesContext. > The default implementations provided by FacesContext throw UnsupportedOperationExceptions. > The fix is to add implementations for getCurrentPhaseId()/setCurrentPhaseId() to MockFacesContext12. > We will likely also want to call FacesContext.setCurrentPhaseId(PhaseId.RENDER_RESPONSE) from RenderKitTestCase$BaseTest.setUp() so that getCurrentPhaseId() does not return null. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.