incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zon...@apache.org
Subject svn commit: r1399061 - /incubator/ooo/trunk/test/testuno/source/fvt/uno/ffc/FFCTest.java
Date Wed, 17 Oct 2012 01:05:56 GMT
Author: zongdj
Date: Wed Oct 17 01:05:55 2012
New Revision: 1399061

URL: http://svn.apache.org/viewvc?rev=1399061&view=rev
Log:
Update how to create a openoffice

Modified:
    incubator/ooo/trunk/test/testuno/source/fvt/uno/ffc/FFCTest.java

Modified: incubator/ooo/trunk/test/testuno/source/fvt/uno/ffc/FFCTest.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/fvt/uno/ffc/FFCTest.java?rev=1399061&r1=1399060&r2=1399061&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/fvt/uno/ffc/FFCTest.java (original)
+++ incubator/ooo/trunk/test/testuno/source/fvt/uno/ffc/FFCTest.java Wed Oct 17 01:05:55 2012
@@ -70,8 +70,9 @@ import com.sun.star.uno.UnoRuntime;
 public class FFCTest {
 	@Rule
 	public Logger log = Logger.getLogger(this, false);
-
-	private static final UnoApp app = new UnoApp();
+	
+	
+	private static  UnoApp app = null;
 	private static Map<String, String> filterMap = new HashMap<String, String>();
 	@FileRepos
 	public static String suiteDir = "../suite/";
@@ -183,9 +184,14 @@ public class FFCTest {
 	@BeforeClass
 	public static void init() {
 		initMap();
+		
 		//Disable automation
-		OpenOffice.getDefault().setAutomationPort(-1);
-		OpenOffice.getDefault().addArgs("-invisible", "-conversionmode", "-headless", "-hidemenu");
+		
+		OpenOffice defaultOpenOffice = new OpenOffice();
+		defaultOpenOffice.addArgs("-nofirststartwizard", "-norestore", "-quickstart=no");
+		defaultOpenOffice.setUnoUrl(OpenOffice.DEFAULT_UNO_URL);
+		defaultOpenOffice.addArgs("-invisible", "-conversionmode", "-headless", "-hidemenu");
+		app = new UnoApp(defaultOpenOffice);
 		
 		File failedDirec = Testspace.getFile(failedFilesDir);
 		failedDirec.mkdirs();
@@ -195,7 +201,7 @@ public class FFCTest {
 	public void setUp() throws Exception {
 		operateFilePath =  Testspace.prepareData(fileURL);
 				
-		
+	
 		app.start();	
 	}
 	@After



Mime
View raw message