Source folder for test directory? [message #524011] |
Tue, 30 March 2010 06:11 |
Eclipse User |
|
|
|
Hi all.
I am a new user of Junit in Eclipse and need some suggestions: I need a directory with a relative path where put a lot of txt files with test data, for example pixel values, lists of image names, lists of expected outputs and so on. because I work on 2 different computers, at work and at home I wish to use relative paths. For the moment I have used successfully a source folder named Data, so I can find the files and transform the paths between relative and absolute with
String absolutePath = getClass().getResource(name).getPath();
String relativePath = absolutePath.substring(absolutePath.indexOf("bin") + 3);
The problem arrive when I try to create and delete subdirectories inside the Data source folder: when I delete something (subdirectory or txt file) the delete is not automatically reflected into the Bin directory. So, can somebody suggest an alternative to the source folder for the txt files for test purposes (but with the possibility of use a relative path?)
thanks in advance!
Alberto Duina
|
|
|
Powered by
FUDForum. Page generated in 0.05435 seconds