[jboss-user] [JBoss Seam] - Re: Unit test security permission rules

shane.bryzak@jboss.com do-not-reply at jboss.com
Sat Feb 3 04:35:46 EST 2007


This shouldn't be too hard, all you should need to do is create a "securityRules" RuleBase object containing your security rules (in application scope), then create an Identity instance which you can use to invoke your unit tests against.  There's plenty of useful classes in the org.jboss.seam.mock package for creating the mock scopes that you'll need - use the Lifecycle class to set these up.

I should probably add a section on unit testing to the security chapter of the docs, with some code samples.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010374#4010374

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010374



More information about the jboss-user mailing list