One difference I noticed is that you're using the Mock approach, while I'm using the in-container approach. Here's the relevant part of my JUnit task (adapted from Erik Hatcher's JDWA book). This is actually used to run *all* my tests - JUnit/Cactus/StrutsTestCase/etc.
<junit printsummary="no" errorProperty="test.failed" failureProperty="test.failed" fork="${junit.fork}"> <classpath> <pathelement path="${additional.src.dirs}"/> <path refid="test.classpath"/> <pathelement location="${build.dir}/${module}/classes"/> <pathelement location="${test.dir}/${module}/classes"/> <pathelement path="${java.class.path}"/> </classpath> <formatter type="xml"/> <formatter type="plain"/> <batchtest todir="${test.dir}/data" if="testcase"> <fileset dir="${test.dir}/${module}/classes" includes="**/*${testcase}*.class" /> </batchtest> <batchtest todir="${test.dir}/data" unless="testcase"> <fileset dir="${test.dir}/${module}/classes" includes="**/*Test.class" /> </batchtest> </junit> HTH, Matt -----Original Message----- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:14 PM To: Struts Users Mailing List Subject: RE: StrutsTestCase question Matt, I think my issue is more of configuration, the test cases look pretty straightforward themselves. Simon >-----Original Message----- >From: Raible, Matt [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 18, 2003 12:14 PM >To: 'Struts Users Mailing List' >Subject: RE: StrutsTestCase question > > >I use it daily (hourly?) and it works great for me. Here's a sample >TestCase: http://tinyurl.com/emwp > >Matt > >-----Original Message----- >From: Chappell, Simon P [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 18, 2003 10:55 AM >To: Struts Mailing List (E-mail) >Subject: StrutsTestCase question > > >Has anyone had any luck getting StrutsTestCase to work? It's >an extension of >JUnit, which we already use on our project, but I have had no >luck getting >it to run. I've read that HowTo and the FAQ and the Intro and >looked at the >sourceforge forums, but have found nothing that helps. > >Time to call for "International Rescue"! :-) > >Simon > >----------------------------------------------------------------- >Simon P. Chappell [EMAIL PROTECTED] >Java Programming Specialist www.landsend.com >Lands' End, Inc. (608) 935-4526 > >"Never give in - never, never, never, never, in nothing great or >small, large or petty, never give in except to convictions of >honor and good sense." - Sir Winston Churchill > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]