That just seems to me like the opposite of what we are trying to achieve with injection.
I would argue against HttpSession and request (I'm assuming ServletRequest) because that is the point of FacesContext...to abstract that away somewhat. But you still need FacesContext.
-Dan
Call FacesContext.setCurrentInstance() :-)
On Tue, Nov 10, 2009 at 4:29 PM, Steven Boscarine
<steven.boscarine@childrens.harvard.edu> wrote:
>
> Gavin King wrote:
>>
>> I didn't put it in, since I figured it was hard to justify that this
>> is better than FacesContext.getCurrentInstance().
>>
>
> How would one unit test a class that has such a call?
>
>
>