Re: Struts 2 Unit test for Session.

2007-09-17 Thread Session A Mwamufiya
I believe you can write a mock implementation of the Person bean and have a copy of applicationcontext.xml for your unit test that points to that mock implementation. What you'd need to do is provide an application context variable to the constructor of your action; in your production code, tha

Re: Struts 2 Unit test for Session.

2007-09-17 Thread Antonio Petrelli
I think you have to ask the Spring forums. Antonio 2007/9/17, isharatbabu <[EMAIL PROTECTED]>: > > > Hello all, > > I have created a java bean called person. i am accessing that java bean > from > applicationcontext.xml where bean scope is set as session. > > applicationcontext.xml > > > http://w