Ok, I got it. SpringMethodRoadie uses AssumptionViolatdException, but this Exception disappeared in 4.6.
Thanks a lot for your help! Matthias -----Ursprüngliche Nachricht----- Von: Stefan Bodewig [mailto:bode...@apache.org] Gesendet: Donnerstag, 14. Mai 2009 14:37 An: dev@ant.apache.org Betreff: Re: ant-problem after upgrading from junit 4.4 to junit 4.6 On 2009-05-14, Walter, Matthias <m.wal...@citti.de> wrote: > Hi there, > the stacktrace is > [junit] Exception in thread "main" java.lang.NoClassDefFoundError: > org/junit/Assume$AssumptionViolatedException > [junit] at > org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:240) I don't think this is the current source, but <http://springframework.cvs.sourceforge.net/viewvc/springframework/spring/tiger/mock/org/springframework/test/context/junit4/SpringMethodRoadie.java?revision=1.13&view=markup> contains a hard reference to the class in question. So it's not Ant but the Spring test context that fails when used with JUnit 4.6. > The files are compiled against 4.6 and run with 4.6. However, the > problem disappears if I change forkmode from "once" to > "perTest". This is doing the job for me.... This is something I don't understand, at all. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org ******************************************************************************** Informationen (einschliesslich Pflichtangaben) zu einzelnen, innerhalb der EU taetigen Gesellschaften und Zweigniederlassungen der CITTI-Gruppe finden Sie unter http://www.citti.de/html/pflichtangaben.html. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Please refer to http://www.citti.de/html/pflichtangaben.html for information (including mandatory corporate particulars) on selected CITTI branches and group companies registered or incorporated in the European Union. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ******************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org