jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: Classpath Resolving
Date Wed, 06 Aug 2003 07:38:13 GMT
Hi Jacob,

There is no difference between TestCase and ServletTestCase WRT paths
(how could there be?). ServletTestCase simply extends TestCase. I think
the problem comes more from the way you execute the Cactus test cases.
You probably use some Ant task for that and you may be setting the
execution directory to some location different from what you were using


> -----Original Message-----
> From: Hookom, Jacob [mailto:Jacob.Hookom@redline.mckhboc.com]
> Sent: 06 August 2003 03:34
> To: cactus-user@jakarta.apache.org
> Subject: Classpath Resolving
> I'm running Ant targets for Unit Testing.
> One of the steps in the TestCase is to validate an XML file via DTD--
> which
> is resolving wrong with the ServletTestCase.
> When I declare my test case extending junit.framework.TestCase, no
> problems
> arise and the System DTD is located in the same directory as the XML.
> But, when I extend ServletTestCase, the DTD location is being resolved
> back
> to the root of project, which is wrong and I get a SAX error with
> digester's
> validation.
> I would much apprechiate any hints as to why the DTD is resolving
> differently between TestCase and ServletTestCase?
> Thanks!
> Jacob
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org

View raw message