Announcement Announcement Module
Collapse
No announcement yet.
Integration with JSFUnit? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    What makes you think Acegi is causing a problem?

    Comment


    • #3
      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

      Comment

      Working...
      X