Dear all, Today's question is on the borderline between Struts and general "good testing practises".
I have an application requirement "users must re-login after 5 minutes of inactivity". Now, the way to do this is to add to the web.xml: <session-config> <session-timeout>5</session-timeout> </session-config> However, how does one test it? More specifically: 1) Can we test it with a struts integration test? 2) How can we mock the time span (ie, we obviously don't want to wait 5 minutes for the test to finish...). Thanks for the input, Miguel Almeida