Hi, I wish to write a test which tests an interceptor. The goal is writing an integration test which hits the struts2 2.1.6 application and mocks out the database DAO (data access object). I'm using JUnit. The interceptor changes the HTTP Response headers. I am testing that and indirectly the struts.xml configuration.
http://struts.apache.org/2.1.6/docs/how-can-we-test-actions.html gave me high hopes. However, ActionProxyFactory.getFactory() does not compile. http://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions looks promising. It seems clear that I need to get an ActionProxy, get an action from it, and call the action's execute. Thoughts? Thanks. -- Michael Finney - "Always Striving To Serve You Better Every Day" http://www.SmilingSoftwareSolutions.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org