RE: unit testing interceptors

2007-07-05 Thread Session A Mwamufiya
Thanks for the code. Could you please include the imports, because I'm not sure what is related to your mock class and what is part of struts 2 (like expect(), is that part of struts 2 or is it internal to your mock class?). Thanks, Session > This uses easyMock @Test public void > should_log_

RE: unit testing interceptors

2007-07-05 Thread Fowler, Perryn
This uses easyMock @Test public void should_log_before_and_after_action_execution() throws Exception { Logger mockLogger = createMock(Logger.class); String actionName = "mockAction"; String actionResult = "Success"; ActionInvocation mockInvocation = createMock(A