>From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> 
>
> If you are using the shale test framework with simple junit tests, the 
> test framework doesn't digest your faces-confg.xml anyway. You have to 
> do that kind of setup in the test cases. 
> 
> The isolated code you want to test in the managed beans would just use a 
> indirect reference (the managed bean name of the delegate). 
> 
> Gary 
> 
> ------------------------------------------ 
> 
> Hmm. I see what you're saying. I'll have to explore that a little 
> further. 
> 

Take a peek at one of the Shale usecase test case examples 
(http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/use-cases/src/test/org/apache/shale/usecases/rolodex/RolodexTestCase.java?view=markup).
 It's not as complex as the scenario you have described but still a reference. 


The setUp() method registers a managed bean “rolodexDao”. There are several 
ways to do this in the test framework but the point is that you have to do this 
manually.

Gary

> - Brendan 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 

Reply via email to