You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Ashok Kumar Y <fo...@opensymphony.com> on 2006/07/03 17:03:27 UTC

How to write JUnit test case to an Action class which extends TilesAction

Hi,

I am working with Struts Action class which extends TilesAction class. Below is the sample code.I need to write JUnit Test case for that. If anyone have worked. Could u help me regarding this. 

public class DisplayLayoutareaController extends TilesAction implements Controller 
{
public void execute(ComponentContext   tileContext,                   HttpServletRequest request, HttpServletResponse response,                                 ServletContext servletContext)
{
//some code
}

public void perform(ComponentContext tileContext,                                               HttpServletRequest request,HttpServletResponse response,                    ServletContext servletContext) throws ServletException,                   java.io.IOException 
{
//
}
}


Thanks & Regards
      Ashok
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=36264&messageID=71055#71055


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: How to write JUnit test case to an Action class which extends TilesAction

Posted by Ted Husted <hu...@apache.org>.
Right now, only the Struts Dev forum is available as a OS Forum.

The best place to post a question like this is the Struts User list,
where there are more people to help and the answers are archived.

* http://struts.apache.org/mail.html

-Ted.

On 7/3/06, Ashok Kumar Y <fo...@opensymphony.com> wrote:
> Hi,
>
> I am working with Struts Action class which extends TilesAction class. Below is the sample code.I need to write JUnit Test case for that. If anyone have worked. Could u help me regarding this.
>
> public class DisplayLayoutareaController extends TilesAction implements Controller
> {
> public void execute(ComponentContext   tileContext,                   HttpServletRequest request, HttpServletResponse response,                                 ServletContext servletContext)
> {
> //some code
> }
>
> public void perform(ComponentContext tileContext,                                               HttpServletRequest request,HttpServletResponse response,                    ServletContext servletContext) throws ServletException,                   java.io.IOException
> {
> //
> }
> }
>
>
> Thanks & Regards
>       Ashok
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.opensymphony.com/thread.jspa?threadID=36264&messageID=71055#71055
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>


-- 
HTH, Ted.
* http://www.husted.com/struts/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: How to write JUnit test case to an Action class which extends TilesAction

Posted by Ashok Kumar Y <fo...@opensymphony.com>.
-
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=36264&messageID=71877#71877


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org