OK, sorry for being a little dense about this, but, if, for example, my application code is referencing a FacesContext object, and my Test code initializes MockFacesContext, what is the mechanism that makes my application use the values that are in MockFacesContext? I understand that MockFacesContext is a subclass of FacesContext, but I don't understand how my application ends up using the values in the MockFacesContext instance instead that were initialized by the test case.
- Brendan -----Original Message----- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 11:55 AM To: Struts Users Mailing List Subject: RE: [SHALE] Using the Test Framework >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > Maybe I'm misunderstanding the problem that the Shale Test Framework is > trying to solve. My JSF actions are doing JNDI lookups and calling > Session Beans, based upon the values in JSF managed beans and maybe some > JSFContext info. If it encounters errors, it queues the errors to be > displayed. > > If the Shale test framework tests outside of a Web container, how are > the JNDI lookups and EJB calls supposed to be handled? > No, You are correct. You could use it with junitee in a web container if you wanted to test EJB/managed bean collaboration. > Thanks, > > - Brendan > Gary --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]