Environment: Maven version 2.2.1 JUnit version 3.8.1
My JUnit test case reads the input file. I put this file into
src/test/resources folder.
In JUnit the following line gives me FileNotFoundException
File f = new File(myfile);
Question: how to specify in pom.xml file that my test input
I tried to follow your 2nd advice: added
data${basedir}/src/test/data/data into surefire
plugin
artifactIdmaven-surefire-plugin/artifactId
version2.4.3/version
configuration
forkModenever/forkMode
reportFormatxml/reportFormat