Index: applications/editors/josm/plugins/build-common.xml
===================================================================
--- applications/editors/josm/plugins/build-common.xml	(revision 36486)
+++ applications/editors/josm/plugins/build-common.xml	(revision 36488)
@@ -601,5 +601,5 @@
         <delete dir="../00_core_test_config/unit-josm.home/cache" failonerror="false"/>
     </target>
-    <target name="test-compile" depends="test-init,dist" if="test.present" unless="skip-test">
+    <target name="test-compile" depends="test-init,dist,plugin-classpath-actual" if="test.present" unless="skip-test">
         <sequential>
             <javac debug="on" includeantruntime="false" srcdir="${plugin.test.dir}/unit" destdir="${plugin.test.dir}/build/unit" encoding="UTF-8"
@@ -608,4 +608,5 @@
                     <fileset refid="plugin.requires.jars"/>
                     <path refid="test.classpath"/>
+                    <path refid="plugin.classpath.actual"/>
                 </classpath>
                 <compilerarg value="-Xlint:all"/>
