Following up: I now have this working on my Mac under OS X. Very nice. The same setup is still breaking under W2K and Cygwin. Bummer! Any thoughts?
Simon >-----Original Message----- >From: Chappell, Simon P >Sent: Wednesday, June 18, 2003 4:41 PM >To: Struts Users Mailing List >Subject: RE: StrutsTestCase question > > >You read my mind! :-) > >I'm now trying to get the StrutsTestCase example to work, with >everything that I need being referenced on the system >CLASSPATH, but I still can't get it to work. Right now, I >can't even get the example files to compile! Grrrrrr! > >Simon > >>-----Original Message----- >>From: Raible, Matt [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, June 18, 2003 4:36 PM >>To: 'Struts Users Mailing List' >>Subject: RE: StrutsTestCase question >> >> >>Try explicitly putting it in your classpath - that's what I do >>- rather than >>relying on Ant's classloader. >> >>-----Original Message----- >>From: Chappell, Simon P [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, June 18, 2003 1:58 PM >>To: Struts Users Mailing List >>Subject: RE: StrutsTestCase question >> >> >>Matt, >> >>I'm just not getting it. But I am getting a NoClassDefFoundError on >>MocStrutsTestCase and there are lots of classloader references >>in the stack >>trace. I have strutstest-2.0.0.jar in my ant lib directory, so >>why can't >>junit see it? >> >>Simon >> >>>-----Original Message----- >>>From: Raible, Matt [mailto:[EMAIL PROTECTED] >>>Sent: Wednesday, June 18, 2003 1:20 PM >>>To: 'Struts Users Mailing List' >>>Subject: RE: StrutsTestCase question >>> >>> >>>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] >>> >>> >> >>--------------------------------------------------------------------- >>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]