You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kanuri, Chand" <ch...@landg.com> on 2005/10/21 12:32:43 UTC
MockStrutsTestCase problem
Hi all,
I am using MockStrutsTestCase api to test my action classes.
i set like this in my setUP() method
setServletConfigFile("/WEB-INF/web.xml");
but the test fails and reports that /WEB-INF/web.xml is invalid path name
any ideas?
cheers
The following companies are subsidiary companies of the Legal & General Group Plc which are authorised and regulated by the Financial Services Authority for advising and arranging the products shown: Legal & General Partnership Services Limited (insurance and mortgages), Legal & General Insurance Limited (insurance), Legal & General Assurance Society Limited (life assurance, pensions and investments), Legal & General Unit Trust Managers Limited and Legal & General Portfolio Management Services Limited (investments).
They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N 4TP.
Legal & General Partnership Services Limited: 5045000 Legal & General Assurance Society Limited: 166055 Legal & General (Unit Trust Managers) Limited: 1009418 Legal & General (Portfolio Management Services) Limited: 2457525 Legal & General Insurance Limited: 423930
They are registered with the Financial Services Authority under numbers shown. You can check this at www.fsa.gov.uk/register
Legal & General Partnership Services Limited: 300792 Legal & General
Assurance Society Limited: 117659 Legal & General (Unit Trust Managers) Limited: 119273 Legal & General (Portfolio Management Services) Limited: 146786 Legal & General Insurance Limited: 202050
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: MockStrutsTestCase problem
Posted by Laurie Harper <la...@holoweb.net>.
Kanuri, Chand wrote:
> Hi all,
> I am using MockStrutsTestCase api to test my action classes.
> i set like this in my setUP() method
>
> setServletConfigFile("/WEB-INF/web.xml");
>
> but the test fails and reports that /WEB-INF/web.xml is invalid path name
>
> any ideas?
This isn't really the place to be asking. Struts Test Case is an
independant project from Struts. There may be people here who have used
it, but you'll get more help on the Struts Test Case formums [1].
L.
[1] http://sourceforge.net/forum/forum.php?forum_id=121751
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: MockStrutsTestCase problem
Posted by "Anuradha S.Athreya" <an...@world2web.com>.
U will have to set the context path of ur application:
setContextDirectory(new File("YOUR_APPLICATION_CONTEXT_PATH"));
Regards
Anuradha
-----Original Message-----
From: Kanuri, Chand [mailto:chand.kanuri@landg.com]
Sent: Friday, October 21, 2005 4:03 PM
To: 'user@struts.apache.org'
Subject: MockStrutsTestCase problem
Hi all,
I am using MockStrutsTestCase api to test my action classes.
i set like this in my setUP() method
setServletConfigFile("/WEB-INF/web.xml");
but the test fails and reports that /WEB-INF/web.xml is invalid path name
any ideas?
cheers
The following companies are subsidiary companies of the Legal & General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal & General
Partnership Services Limited (insurance and mortgages), Legal & General
Insurance Limited (insurance), Legal & General Assurance Society Limited
(life assurance, pensions and investments), Legal & General Unit Trust
Managers Limited and Legal & General Portfolio Management Services Limited
(investments).
They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N
4TP.
Legal & General Partnership Services Limited: 5045000 Legal & General
Assurance Society Limited: 166055 Legal & General (Unit Trust Managers)
Limited: 1009418 Legal & General (Portfolio Management Services) Limited:
2457525 Legal & General Insurance Limited: 423930
They are registered with the Financial Services Authority under numbers
shown. You can check this at www.fsa.gov.uk/register
Legal & General Partnership Services Limited: 300792 Legal & General
Assurance Society Limited: 117659 Legal & General (Unit Trust Managers)
Limited: 119273 Legal & General (Portfolio Management Services) Limited:
146786 Legal & General Insurance Limited: 202050
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org