OPENJPA-2444 also use target folder in the test itself

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1535665 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Struberg 2013-10-25 09:35:32 +00:00
parent cb0c80f6ac
commit 15426af915
1 changed files with 7 additions and 1 deletions

View File

@ -41,6 +41,12 @@ public class TestUseSchemaElement extends /*TestCase*/ SingleEMFTestCase {
public void setUp() throws Exception {
super.setUp();
File f = new File("target/orm.xml");
// Make sure to clean up orm.xml from a prior run
if (f.exists()) {
assertTrue(f.delete());
}
setSupportedDatabases(org.apache.openjpa.jdbc.sql.DerbyDictionary.class);
}
@ -113,7 +119,7 @@ public class TestUseSchemaElement extends /*TestCase*/ SingleEMFTestCase {
}
// This tests the removal of the schema name from the orm.xml file
File orm = new File("./orm.xml");
File orm = new File("target/orm.xml");
try {
inFile = new Scanner(orm);
while(inFile.hasNextLine())