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.

Bug 93318 - Use getDataDir() in tests
Summary: Use getDataDir() in tests
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords: TEST
Depends on:
Blocks: 93294
  Show dependency tree
 
Reported: 2007-01-26 13:30 UTC by pzajac
Modified: 2009-11-10 06:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch to tests (2.02 KB, patch)
2007-01-26 13:31 UTC, pzajac
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2007-01-26 13:30:02 UTC
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.
Comment 1 pzajac 2007-01-26 13:31:58 UTC
Created attachment 37722 [details]
patch to tests
Comment 2 Erno Mononen 2007-01-26 16:32:09 UTC
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