ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Walter, Matthias" <M.Wal...@citti.de>
Subject ant-problem after upgrading from junit 4.4 to junit 4.6
Date Thu, 14 May 2009 08:49:37 GMT
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 org.path.to.my.test.class.SqliteBackupManagerTest
[junit] Testsuite: org.path.to.my.test.class.SqliteBackupManagerTest

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

If I downgrade to junit 4.4 the problem disappears.

Hudson uses a build.xml for performing the tests:


	<target name="test" depends="test-compile" description="runs the
testcases">
		<junit fork="yes" forkmode="once" printsummary="true" >
			<jvmarg
value="-Dprojekte.home=${projekte.home}"/>
			<!-- cobertura.ser Datei einbinden -->
			<sysproperty
key="net.sourceforge.cobertura.datafile"
file="${build(folder)}/${build.instrumented-classes(folder)}/${cobertura
(file)}" />
			<classpath>
				<!-- instrumented-cobertura-classes
einbinden -->
				<!--
					Note the classpath order:
instrumented classes are before the
					original (uninstrumented)
classes.  This is important.
				-->
				<pathelement
location="${build(folder)}/${build.instrumented-classes(folder)}" />
				<pathelement
location="${build(folder)}/${build.classes(folder)}" />	
				<pathelement
location="${source(folder)}/${source.resources(folder)}" />
				<pathelement
location="${test(folder)}/${test.build(folder)}/${test.build.classes(fol
der)}" />
				<pathelement
location="${test(folder)}/${test.source(folder)}/${test.source.resources
(folder)}" />
				<fileset
dir="${test(folder)}/${test.lib(folder)}" includes="**/*.jar" />
				<fileset dir="${lib(folder)}"
includes="**/*.jar" />
				<path refid="cobertura.classpath" />
			</classpath>
			<formatter type="brief" usefile="false" />
			<formatter type="xml" />
			<batchtest
todir="${build(folder)}/${build.reports(folder)}/${build.reports.junit(f
older)}">
				<fileset
dir="${test(folder)}/${test.source(folder)}" includes="**/*Test.java" />
			</batchtest>

		</junit>
		<junitreport
todir="${build(folder)}/${build.reports(folder)}/${build.reports.junit(f
older)}" />
	</target>
 

I reported the problem in the junit-forum and I was given the advice:

This appears to be a hard-coded dependency from ant to an internal class
in JUnit. Can you bring it up on an ant forum? Encourage them to report
problems to junit@yahoogroups.com, or the JUnit issue tracker.

This is why I'm posting it here.

Can you help me?


Thanks in advance, Matthias
********************************************************************************

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-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message