[appfuse-user] BaseStrutsTestCase in appfuse?

2010-12-14 Thread Josep García
I have found this while doing some search: /** * This class is extended by all ActionTests. It basically * contains common methods that they might use. * * * View Source * * @author mailto:[email protected]";>Matt Raible */ public abstract class BaseStrutsTestCase extends MockStruts

Re: [appfuse-user] BaseStrutsTestCase in appfuse?

2010-12-14 Thread Matt Raible
On Tue, Dec 14, 2010 at 5:47 AM, Josep García wrote: > I have found this while doing some search: > > > /** > * This class is extended by all ActionTests. It basically > * contains common methods that they might use. > * > * > * View Source > * > * @author mailto:[email protected]";>

Re: [appfuse-user] BaseStrutsTestCase in appfuse?

2010-12-14 Thread Josep García
This seems to be based on servletunit and it looks like it only supports Struts 1.x. I'd like to write a test like: public void testSearchByBondName() throws Exception { HashMap params = new HashMap(); ActionProxy proxy = createActionProxy(NAMESPACE, ACTION, parrams); assertEquals("s

Re: [appfuse-user] BaseStrutsTestCase in appfuse?

2010-12-14 Thread DUSTIN PEARCE
Hi Josep, I can help you. Here is something from the mailing list from a while ago: http://appfuse.547863.n4.nabble.com/Spring-Autowiring-during-Unit-testing-tp575190p575196.html I can send you some examples of how we are using a Struts2 BaseTest class like you describe in a little bit. You m

Re: [appfuse-user] BaseStrutsTestCase in appfuse?

2010-12-14 Thread DUSTIN PEARCE
Ok. Josep. This is what we are using today. Pasting this in the email seems long, but @ContextConfiguration(loader=StrutsContextLoader.class , locations = {"classpath:/applicationContext-resources.xml", "classpath:/applicationContext-CrowdClient.xml" ,"classpath:/applicati

Re: [appfuse-user] Failed to start appfuse light 2.1.0-M1

2010-12-14 Thread Matt Raible
Can you try M2 and use mvn jetty:run instead? On Dec 13, 2010, at 11:35 AM, Tony Luo wrote: > Hi All, > > I create one appfuse light project but failed to start the web server. I > found someone raised the same question but no answer evetually. So I have to > raise it again. > > Steps > 1)Cr

Re: [appfuse-user] Failed to start appfuse light 2.1.0-M1

2010-12-14 Thread Tony Luo
Hi Matt, Thanks for your reply. "mvn jetty:run" works for me. Regards Tony Luo 2010/12/15 Matt Raible > Can you try M2 and use mvn jetty:run instead? > > > On Dec 13, 2010, at 11:35 AM, Tony Luo wrote: > > Hi All, > > I create one appfuse light project but failed to start the web server. I >