RE: [StrutsTestCase Error] Request does not contain handler parameter named action

2002-04-04 Thread Matt Raible

I get this same error using Mozilla 0.9.9, but not in IE.  It might be
an issue with Struts 1.1b1.

Thanks,

Matt

> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 8:18 AM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: [StrutsTestCase Error] Request does not contain handler
parameter
> named action
> 
> Deryl,
> 
> I'm trying to use StrutsTestCase 1.6 and CactusStrutsTestCase to test
an
> Action that extends LookupDispatchAction.
> 
> In my mind, the following test method "should" call the "create"
method on
> my class.
> 
> public void testCreate() {
>setRequestPathInfo("/assetEdit");
>addRequestParameter("action","Create");
>actionPerform();
>verifyForward("create");
>assertTrue(getSession().getAttribute("assetForm") != null);
>verifyNoActionErrors();
> }
> 
> Here is my action-mapping:
> 
>   
>type="com.onpoint.webapp.action.AssetAction" name="assetForm"
> scope="session" validate="false" input="asset.list"
parameter="action">
>   
>   
>path="/do/assetEdit?action=Search"/>
>   
>   
>   
> 
> However, I get the following error:
> 
> [junit] FAILED
> [junit] Error running action.perform(): Request[/assetEdit] does
not
> contain handler parameter named action
> [junit] junit.framework.AssertionFailedError: Error running
> action.perform(): Request[/assetEdit] does not contain h
> andler parameter named action
> [junit] at
>
servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestCa
se
> .java:389)
> [junit] at
>
com.onpoint.webapp.action.AssetActionTest.testCreate(AssetActionTest.jav
a:
> 97)
> 
> Any ideas?
> 
> Thanks,
> 
> Matt


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




[StrutsTestCase Error] Request does not contain handler parameter named action

2002-04-04 Thread Matt Raible

Deryl,

I'm trying to use StrutsTestCase 1.6 and CactusStrutsTestCase to test an
Action that extends LookupDispatchAction.

In my mind, the following test method "should" call the "create" method
on my class.

public void testCreate() {
   setRequestPathInfo("/assetEdit");
   addRequestParameter("action","Create");
   actionPerform();
   verifyForward("create");
   assertTrue(getSession().getAttribute("assetForm") != null);
   verifyNoActionErrors();
}

Here is my action-mapping:










However, I get the following error:

[junit] FAILED
[junit] Error running action.perform(): Request[/assetEdit] does not
contain handler parameter named action
[junit] junit.framework.AssertionFailedError: Error running
action.perform(): Request[/assetEdit] does not contain h
andler parameter named action
[junit] at
servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestCa
se.java:389)
[junit] at
com.onpoint.webapp.action.AssetActionTest.testCreate(AssetActionTest.jav
a:97)

Any ideas?

Thanks,

Matt


--
To unsubscribe, e-mail:   
For additional commands, e-mail: