struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin.Bed...@sunlife.com
Subject Re: Struts TestCase v1.9 exception
Date Fri, 06 Dec 2002 15:50:15 GMT


Are you using the correct version of StrutsTestCase? There are 4 versions.
Make sure you have the right one for the version of Struts and the
container you are using.





"Afshartous, Nick" <nick.afshartous@proactcorp.com> on 12/06/2002 10:48:41
AM

Please respond to "Struts Users Mailing List"
       <struts-user@jakarta.apache.org>

To:    "'struts-user@jakarta.apache.org'" <struts-user@jakarta.apache.org>
cc:     (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:    Struts TestCase v1.9 exception



Hi,

I'm trying to use Struts TestCase v1.9 and am getting the exception below
when calling actionPerform().  Thanks for any explanation.
--
      Nick

 <testcase name="testSuccessfulUserLogon" time="6.123">
    <failure message="Error running action.perform(): class
java.lang.ClassCastException - org.apache.struts.action.ActionMapping"
type
="org.apache.cactus.client.AssertionFailedErrorWrapper">junit.framework.
AssertionFailedError: Error running action.perform(): class
java.lang.ClassCastException - org.apache.struts.action.ActionMapping

 at junit.framework.Assert.fail(Assert.java:51)
 at
servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestCase.j

ava:278)
 at
testcases.com.proactcorp.web.benmgmt.common.security.action.TestLogonAction.

logon(TestLogonAction.java:62)








---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message