ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Junit for testing ant task
Date Mon, 28 Jun 2004 05:52:53 GMT
The "java.lang.ClassCastException" sounds that you´re using an unsupported
SAX parser (we have that???). 

Do the testcases of Ant´s src-distro pass?


Jan

> -----Ursprüngliche Nachricht-----
> Von: Le Rumeur Yves [mailto:lerumeur@artenum.com]
> Gesendet am: Freitag, 25. Juni 2004 17:57
> An: Ant Users List
> Betreff: Junit for testing ant task
> 
> Hie,
> 
> 	I quickly see a mail which describe a same problem i 
> have. But no
> response...
> 	So my trouble is i try to test with junit task, a 
> personnal ant task
> which i develop. I work whith the last eclipse release and in this
> framework, i run testSuite class without any trouble. But 
> when i want to
> make the same action with a junit task in my buildfile i have 
> this trace
> :
> 
>     [junit] Testcase:
> testRealTime(org.libresource.artenum.antTask.WakeUpTest): Caused an
> ERROR
>     [junit] null
>     [junit] java.lang.ClassCastException
>     [junit]     at org.apache.xerces.parsers.SAXParser.<init>(Unknown
> Source)
>     [junit]     at org.apache.xerces.parsers.SAXParser.<init>(Unknown
> Source)
>     [junit]     at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown
> Source)
>     [junit]     at
> org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unkno
> wn Source)
>     [junit]     at org.persopack.antTask.WakeUpTest.setUp(Unknown
> Source)
> 
> 	In the setUp I try to configureProject with xml file.
> 	So I try to configure different field of the junit task 
> but hopeless...
> Anybody have solution please?
> 
> -- 
> Yves
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message