This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Use rather NbTestCase.getDataDir() then new File(System.getProperty("test.data.dir")) with defined property in project.xml in your tests. Because getDataDir() works in binary test distribution. I'll attach patch. Please apply it.
Created attachment 37722 [details] patch to tests
Fixed in trunk, thanks for the patch. /cvs/j2ee/ddapi/nbproject/project.properties,v <-- project.properties new revision: 1.18; previous revision: 1.17 done Checking in test/unit/src/org/netbeans/modules/j2ee/dd/api/web/DDApiTest.java; /cvs/j2ee/ddapi/test/unit/src/org/netbeans/modules/j2ee/dd/api/web/ DDApiTest.java,v <-- DDApiTest.java new revision: 1.5; previous revision: 1.4 done