Results 1 to 3 of 3

Thread: Integration with JSFUnit?

  1. #1
    Join Date
    Dec 2008
    Posts
    9

    Default Integration with JSFUnit?

    Hi,

    Search for jsfunit offers naught so I pose the question:

    Has anyone had any modicum of success implementing JSFUnit 1.0.0.GA (or prior) within a JSF web application? I have some leads from the JSFUnit forums but thought I should burn both ends of the candle.

    My technology stack is:

    JSF 1.2
    Richfaces 3.2.2GA
    acegi 1.0.6
    facelets 1.1.14
    JSFUnit 1.0.0GA

    war deployed to Jboss AS 4.2.3.

    Acegi seems to thwart efforts to implement the jsfunit tests. Has any else ventured into these far reaches?

    Thanks,
    Henry

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    What makes you think Acegi is causing a problem?

  3. #3
    Join Date
    Dec 2008
    Posts
    9

    Default JSFUnit Integration with Acegi - no issues

    Luke,

    I had been grasping at straws yesterday, until I had uncovered a JIRA in JSFUnit that helped explain my issue. Basically, JSFUnit requires a serializable object with which it creates a session object from the servlet API.

    As to Acegi, required changes are these holes for requests to the JSFUnit servlet. In the objectDefinitionSource ppty of your filterSecurityInterceptor bean add the following values:

    /servlettestrunner/**=IS_AUTHENTICATED_ANONYMOUSLY
    /servletredirector/**=IS_AUTHENTICATED_ANONYMOUSLY
    /cactus-report.xsl=IS_AUTHENTICATED_ANONYMOUSLY

    The first two are for JSFUnit to invoke its filters and the third is for Cactus to display the test results using XSLT.

    Cheers,
    Henry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •