openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1532833 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/meta/TestUseSchemaElement.java
Date Wed, 16 Oct 2013 17:56:12 GMT
Author: curtisr7
Date: Wed Oct 16 17:56:11 2013
New Revision: 1532833

URL: http://svn.apache.org/r1532833
Log:
Minor test change in TestUseSchemaElement to clean up prior to running.

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/meta/TestUseSchemaElement.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/meta/TestUseSchemaElement.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/meta/TestUseSchemaElement.java?rev=1532833&r1=1532832&r2=1532833&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/meta/TestUseSchemaElement.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/meta/TestUseSchemaElement.java
Wed Oct 16 17:56:11 2013
@@ -45,6 +45,12 @@ public class TestUseSchemaElement extend
 	
 	public void setUp() throws Exception {
 		super.setUp();
+		File f = new File("./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);
 	}
 	



Mime
View raw message