ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Walter, Matthias" <>
Subject AW: ant-problem after upgrading from junit 4.4 to junit 4.6
Date Thu, 14 May 2009 12:17:55 GMT
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(
	[junit] 	at org.springframework.test.context.junit4.SpringMethodRoadie$
	[junit] 	at org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(
	[junit] 	at org.springframework.test.context.junit4.SpringMethodRoadie.runTest(
	[junit] 	at
	[junit] 	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(
	[junit] 	at org.junit.internal.runners.JUnit4ClassRunner.runMethods(
	[junit] 	at org.junit.internal.runners.JUnit4ClassRunner$
	[junit] 	at org.junit.internal.runners.ClassRoadie.runUnprotected(
	[junit] 	at org.junit.internal.runners.ClassRoadie.runProtected(
	[junit] 	at
	[junit] 	at
	[junit] 	at
	[junit] 	at
	[junit] 	at

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....

Thanks a lot for your help,


-----Ursprüngliche Nachricht-----
Von: Stefan Bodewig [] 
Gesendet: Donnerstag, 14. Mai 2009 11:32
Betreff: Re: ant-problem after upgrading from junit 4.4 to junit 4.6

Hi Matthias,

On 2009-05-14, Walter, Matthias <> wrote:

> Hello there,

> I'm not quite sure if this is the correct mailing list for my problem,
> please forgive me, if not.

> I have a problem after upgrading junit from 4.4 to 4.6 on a Hudson
> Server.

> I get the error message:

> [junit] Running
> [junit] Testsuite:

> /some/path/to/my/build.xml:188: java.lang.NoClassDefFoundError:
> org/junit/Assume$AssumptionViolatedException

could you provide the full stacktrace (running ant in verbose mode, if

I've grepped through Ant's sources and can't find any reference to
AssumptionViolatedException or he Assume class in Ant's trunk or Ant

It may be some other library/tool that you are using during your test.
Cobertura is a likely candidate.


To unsubscribe, e-mail:
For additional commands, e-mail:


Informationen (einschliesslich Pflichtangaben) zu einzelnen, innerhalb der EU
taetigen Gesellschaften und Zweigniederlassungen der CITTI-Gruppe finden Sie unter 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 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:
For additional commands, e-mail:

View raw message