Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Lukasz Lenart
2010/8/18 Stephen Turner : > I'm looking in struts2-junit-plugin-2.2.1.jar that came as part of > struts2-2.2.1-all.zip and I see only these classes in the org/apache/struts2 > folder: > > StrutsTestCase.class > StrutsTestCase$1.class > StrutsSpringTestCase.class > > What am I missing? This class

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Stephen Turner
On Wed, 18 Aug 2010 16:22:37 -0400, Lukasz Lenart wrote: 2010/8/18 Stephen Turner : Unit tests for interceptors in Struts 2.2.1 In TokenInterceptorTest I see a reference to org.apache.struts2.TestConfigurationProvider, but I can't find this class in a jar file. I do see the source code t

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Lukasz Lenart
2010/8/18 Stephen Turner : > Unit tests for interceptors in Struts 2.2.1 > > In TokenInterceptorTest I see a reference to > org.apache.struts2.TestConfigurationProvider, but I can't find this class in > a jar file. I do see the source code though. > > Which jar should I be using for TestConfigurati

Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Stephen Turner
Unit tests for interceptors in Struts 2.2.1 In TokenInterceptorTest I see a reference to org.apache.struts2.TestConfigurationProvider, but I can't find this class in a jar file. I do see the source code though. Which jar should I be using for TestConfigurationProvider? Thanks, Steve -

RE: unit testing interceptors

2007-07-05 Thread Session A Mwamufiya
ger); String > result = interceptor.intercept(mockInvocation); > > verify(mockLogger); verify(mockInvocation); verify(mockProxy); > assertEquals("Should return result from inner action", actionResult, > result); } > > -Original Message- From: Session A Mwamufiya

RE: unit testing interceptors

2007-07-05 Thread Fowler, Perryn
} -Original Message- From: Session A Mwamufiya [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 July 2007 6:23 PM To: Struts Users Mailing List Subject: unit testing interceptors Hi, Has anyone created unit tests (with JUnit) for interceptors? I'd like to have an ea

unit testing interceptors

2007-07-05 Thread Session A Mwamufiya
Hi, Has anyone created unit tests (with JUnit) for interceptors? I'd like to have an easy example to follow in order to unit test mine. Thanks, Session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

unit testing interceptors

2007-07-04 Thread Session A Mwamufiya
Hi All, Does anyone have a link to a simple example for unit testing an interceptor and creating a mock ActionInvocation? The example in the Struts 2 documentation (http://struts.apache.org/2.0.8/docs/how-can-we-test-actions.html) is hard to understand and reuse in my code. Thanks for any hel