shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig McClanahan (JIRA)" <>
Subject [jira] Commented: (SHALE-304) Update shale-test mock objects to support JSF 1.2 (and unified EL) APIs
Date Thu, 05 Oct 2006 23:42:15 GMT
    [ ] 
Craig McClanahan commented on SHALE-304:

I've started planning out how this is going to work.  The mock factory methods will analyze
the runtime environment and return an object of a different class depending on what JSF version
the tests are run under.  For example, MockFacesContextFactory will return one of:

    // JSF 1.1 version
    public class MockFacesContext extends FacesContext
    // has all the 1.1 functionality

    // JSF 1.2 version
    public class MockFacesContext12 extends MockFacesContext
    // adds the stuff unique to 1.2

This superclass hierarchy allows things like AbstractJsfTestCase to declare an instance variable
of type MockFacesContext that will work when running tests under either version.  But, if
you want to test the 1.2 specific functionality, you'll need to cast this to MockFacesContext12

My implementation plan is to start by creating the 1.2 versions of the necessary classes (especially
FacesContext, ExternalContext, and Application) and get those checked in first.  Then, it'll
be necessary to mock up the evaluation of value expressions and method expressions, which
won't be functional initially.

> Update shale-test mock objects to support JSF 1.2 (and unified EL) APIs
> -----------------------------------------------------------------------
>                 Key: SHALE-304
>                 URL:
>             Project: Shale
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Craig McClanahan
>         Assigned To: Craig McClanahan
>             Fix For: 1.0.4-SNAPSHOT
> The current shale-test mock objects support only JSF 1.1.  In order to test Shale itself,
as well as libraries that depend on it, under JSF 1.2 the test framework needs to be upgratded
to support the new APIs.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message