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
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]";>
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
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
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
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
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
>