excluded.properties
"Thomas Selner" <[email protected]> Wed, 3 Mar 2004 14:16:58 +0100
| Newsgroups | gmane.comp.java.junit.announce |
|---|---|
| Organization | BDC EDV-Consulting GmbH |
| Message-ID | <[email protected]> |
Hi guys! Following problem: ------------------ I wrote a JUnit Test for a class i created, in this class i use the = org.apache.xerces.parsers.* classes, but because of the junit classloader i get an = classcastexception when i want to call the constructor of my class. I solved it: ------------ I edited the excluded.properties file and added following line: excluded.9=3Dorg.apache.xerces.parsers.* ... and re-added it to the junit.jar file. IT WORKS! ... but i don't want to change the junit.jar file, because others = (partners) also want to use it, they don't want me to change it. so i heard another way = to solve it is to create excluded.properties, add the line above and add it = BEFORE the junit.jar file to the CLASSPATH. i did this but it simply doesn't work ... any help? greets ... thomas ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click