summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2010-07-14 15:48:12 +0200
committerKurt Zenker <kz@openoffice.org>2010-07-14 15:48:12 +0200
commit135c3397ff46737f0ef7a8f14f1050736e535347 (patch)
tree743d855cc204d001bbed51b9e549b86ca71b21fd
parentd935bef4673f4e3df07d0465178160586bfcfc5e (diff)
masterfix: #i10000# add api-adaptions from cws jl152
Notes
split repo tag: testing_ooo/OOO330_m1
-rw-r--r--smoketestoo_native/data/Global.xml2
-rw-r--r--smoketestoo_native/data/Test_Ext.xml16
2 files changed, 9 insertions, 9 deletions
diff --git a/smoketestoo_native/data/Global.xml b/smoketestoo_native/data/Global.xml
index f944731fde79..364d2e2efcfb 100644
--- a/smoketestoo_native/data/Global.xml
+++ b/smoketestoo_native/data/Global.xml
@@ -76,7 +76,7 @@ Global const cUnoDatabaseContext = cUnoPrefix + &quot;sdb.DatabaseContext&quot;
Global const cUnoRowSet = cUnoPrefix + &quot;sdb.RowSet&quot;
Global const cUnoSmoketestTestExtension = cUnoPrefix + &quot;comp.smoketest.TestExtension&quot;
Global const cUnoSmoketestCommandEnvironment = cUnoPrefix + &quot;deployment.test.SmoketestCommandEnvironment&quot;
-Global const cUnothePackageManagerFactory = cUnoPrefix + &quot;deployment.thePackageManagerFactory&quot;
+Global const cExtensionManager = cUnoPrefix + &quot;deployment.ExtensionManager&quot;
&apos;UserFieldNames
Global const cUserFieldTestWriter = &quot;Writer&quot;, cUserFieldTestCalc = &quot;Calc&quot;, cUserFieldTestImpress = &quot;Impress&quot;
diff --git a/smoketestoo_native/data/Test_Ext.xml b/smoketestoo_native/data/Test_Ext.xml
index bd7dbac693fa..31d27dc7a4a7 100644
--- a/smoketestoo_native/data/Test_Ext.xml
+++ b/smoketestoo_native/data/Test_Ext.xml
@@ -53,14 +53,10 @@ sImplementationNameString = cUnoSmoketestTestExtension + &quot;$_TestExtension&q
&apos;javaunohelper/com/sun/star/comp/juhtest/SmoketestCommandEnvironment.java and the code is in juh.jar
cmdEnv = createUnoService(cUnoSmoketestCommandEnvironment)
- &apos;Create the component context and then get the singleton thePackageManagerFactory
+ &apos;Create the component context and then get the singleton ExtensionManager
&apos;A singleton cannot be created with createUnoService
ctx = getDefaultContext
- factory = ctx.getValueByName(&quot;/singletons/&quot; + cUnothePackageManagerFactory)
-
- &apos;Get the XPackageManager interface. By passing &quot;user&quot; we determine that the actions we perform on
- &apos;XPackageManager only affect the user installation. To modify the share installation one would pass &quot;share&quot;.
- ext_mgr = factory.getPackageManager(&quot;user&quot;)
+ ext_mgr = ctx.getValueByName(&quot;/singletons/&quot; + cExtensionManager)
LogState (not IsNull (ext_mgr), &quot;Extension &quot;+ cMessageExtensionService, FileChannel)
LogState (not IsNull (ext_mgr), &quot;Extension &quot;+ cMessageExtensionService, MainFileChannel)
@@ -74,7 +70,11 @@ sImplementationNameString = cUnoSmoketestTestExtension + &quot;$_TestExtension&q
nCurrentAction = cEXTInstall
&apos;Add the extension. We must provide a file URL here.
- ext_mgr.addPackage(sExtensionURL + cExtensionFileName, &quot;&quot;, obj_null, cmdEnv)
+ &apos;By passing &quot;user&quot; we determine that the actions we perform on
+ &apos;XExtensionManager only affect the user installation. To modify the share installation one would pass &quot;share&quot;.
+
+ Dim props() as Object
+ ext_mgr.addExtension(sExtensionURL + cExtensionFileName, props, &quot;user&quot;, obj_null, cmdEnv)
&apos;Check if the extension has been added by creating a service which is contained in the extension.
oTestExtension = createUnoService(cUnoSmoketestTestExtension)
@@ -91,7 +91,7 @@ sImplementationNameString = cUnoSmoketestTestExtension + &quot;$_TestExtension&q
nCurrentAction = cEXTUninstall
&apos;Remove the package
- ext_mgr.removePackage(&quot;org.openoffice.legacy.&quot; + cExtensionFileName, cExtensionFileName, obj_null, cmdEnv)
+ ext_mgr.removeExtension(&quot;org.openoffice.legacy.&quot; + cExtensionFileName, cExtensionFileName, &quot;user&quot;,obj_null, cmdEnv)
&apos;Try to create the service which is contained in the now removed extension.
oTestExtension = createUnoService(cUnoSmoketestTestExtension)