incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liu...@apache.org
Subject svn commit: r1361033 - /incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/common/Testspace.java
Date Fri, 13 Jul 2012 02:58:12 GMT
Author: liuzhe
Date: Fri Jul 13 02:58:11 2012
New Revision: 1361033

URL: http://svn.apache.org/viewvc?rev=1361033&view=rev
Log:
Add a new method prepareData(String, String). The second argument is used to specify a relative
path under testspace.

Modified:
    incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/common/Testspace.java

Modified: incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/common/Testspace.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/common/Testspace.java?rev=1361033&r1=1361032&r2=1361033&view=diff
==============================================================================
--- incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/common/Testspace.java
(original)
+++ incubator/ooo/trunk/main/test/testcommon/source/org/openoffice/test/common/Testspace.java
Fri Jul 13 02:58:11 2012
@@ -61,8 +61,12 @@ public class Testspace {
 	}
 	
 	public static String prepareData(String dataFilePath) {
+		return prepareData(dataFilePath, "data/" + dataFilePath);
+	}
+	
+	public static String prepareData(String dataFilePath, String to) {
 		File dataFile = new File(dataFilePath);
-		File workingFile = getFile("data/" + dataFilePath);
+		File workingFile = getFile(to);
 		
 		if (!dataFile.isAbsolute()) 
 			dataFile = new File(testdata, dataFilePath);
@@ -79,5 +83,4 @@ public class Testspace {
 		
 		return workingFile.getAbsolutePath();
 	}
-	
 }



Mime
View raw message