Hi! On Wednesday 04 June 2008 Derek Alexander wrote: > I have a file config.xml that should be alongside its corresponding > (TestCase) class file when the tests are run. > > Source is like this: > > src/test/java/com/example/db/config.xml > src/test/java/com/example/db/MyTest.java (expects to find config.xml > in same package)
Resources like config.xml should go in src/test/resources, not src/test/java. > I tried adding this to the surefire config in my pom: That shouldn't be necessary. > What I really want is for config.xml to be in: > > target/test-classes/com/example/db/ > > when the test is run. Put it that way: src/test/resources/com/example/db/config.xml src/test/java/com/example/db/MyTest.java This should work without any additional configuration in pom.xml hth, - martin
signature.asc
Description: This is a digitally signed message part.