diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/configuration/backend')
9 files changed, 141 insertions, 141 deletions
diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java b/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java index 68d113ebb8b4..3545928c4da4 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -89,7 +89,7 @@ public class _XBackend extends MultiMethodTest { try { XUpdateHandler aHandler = oObj.getUpdateHandler( - "org.openoffice.Office.TypeDetection", + "org.openoffice.Office.TypeDetection", "illegal"); log.println("Exception expected -- FAILED"); res = false; @@ -106,10 +106,10 @@ public class _XBackend extends MultiMethodTest { try { XStringSubstitution sts = createStringSubstitution( (XMultiServiceFactory) tParam.getMSF()); - String ent = sts.getSubstituteVariableValue("$(inst)") + + String ent = sts.getSubstituteVariableValue("$(inst)") + "/share/registry"; XUpdateHandler aHandler = oObj.getUpdateHandler( - "org.openoffice.Office.Jobs", + "org.openoffice.Office.Jobs", ent); if (aHandler == null) { @@ -138,11 +138,11 @@ public class _XBackend extends MultiMethodTest { try { XStringSubstitution sts = createStringSubstitution( (XMultiServiceFactory) tParam.getMSF()); - String ent = sts.getSubstituteVariableValue("$(inst)") + + String ent = sts.getSubstituteVariableValue("$(inst)") + "/share/registry"; XLayer[] Layers = oObj.listLayers( "org.openoffice.Office.Linguistic", ent); - + for (int i = 0; i < Layers.length; i++) { log.println("Checking Layer " + i); res &= checkLayer(Layers[i]); @@ -175,7 +175,7 @@ public class _XBackend extends MultiMethodTest { if (Layers.length==0) { System.out.println("No Layers found -- FAILED"); res &= false; - } + } } catch (com.sun.star.configuration.backend.BackendAccessException e) { log.println("unexpected Exception " + e + " -- FAILED"); res = false; diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XBackendEntities.java b/qadevOOo/tests/java/ifc/configuration/backend/_XBackendEntities.java index 6a36c889985f..18330bc4a01c 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XBackendEntities.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XBackendEntities.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XLayer.java b/qadevOOo/tests/java/ifc/configuration/backend/_XLayer.java index 784f14b4b5b0..e958d186921e 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XLayer.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XLayer.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -32,14 +32,14 @@ import lib.MultiMethodTest; import util.XLayerHandlerImpl; public class _XLayer extends MultiMethodTest { - - public XLayer oObj; - + + public XLayer oObj; + public void _readData() { boolean res = false; - + log.println("Checking for Exception in case of nul argument"); - + try { oObj.readData(null); } catch (com.sun.star.lang.NullPointerException e) { @@ -49,8 +49,8 @@ public class _XLayer extends MultiMethodTest { log.println("Unexpected Exception ("+e+") -- FAILED"); } catch (com.sun.star.configuration.backend.MalformedDataException e) { log.println("Unexpected Exception ("+e+") -- FAILED"); - } - + } + log.println("checking read data with own XLayerHandler implementation"); try { XLayerHandlerImpl xLayerHandler = new XLayerHandlerImpl(); @@ -63,7 +63,7 @@ public class _XLayer extends MultiMethodTest { res &= false; } else { log.println("startLayer was called -- OK"); - res &= true; + res &= true; } int el = implCalled.indexOf("endLayer"); if (el < 0) { @@ -71,8 +71,8 @@ public class _XLayer extends MultiMethodTest { res &= false; } else { log.println("endLayer was called -- OK"); - res &= true; - } + res &= true; + } } catch (com.sun.star.lang.NullPointerException e) { log.println("Unexpected Exception ("+e+") -- FAILED"); res &= false; @@ -83,8 +83,8 @@ public class _XLayer extends MultiMethodTest { log.println("Unexpected Exception ("+e+") -- FAILED"); res &= false; } - + tRes.tested("readData()",res); } - + } diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java index 181555180534..f267d2500294 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,55 +53,55 @@ public class _XLayerHandler extends MultiMethodTest { oObj.startLayer(); oObj.overrideNode("org.openoffice.Setup", (short) 0, false); oObj.overrideNode("Office", (short) 0, false); - oObj.overrideProperty("ooSetupInstCompleted", (short) 0, + oObj.overrideProperty("ooSetupInstCompleted", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue(new Boolean(false)); oObj.endProperty(); - oObj.overrideProperty("ooSetupShowIntro", (short) 0, + oObj.overrideProperty("ooSetupShowIntro", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue(new Boolean(true)); oObj.endProperty(); - oObj.overrideProperty("ooSetupLocales", (short) 0, + oObj.overrideProperty("ooSetupLocales", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("en-US"); oObj.endProperty(); oObj.overrideNode("Factories", (short) 0, false); - oObj.addOrReplaceNode("com.sun.star.chart.ChartDocument", + oObj.addOrReplaceNode("com.sun.star.chart.ChartDocument", (short) 0); - oObj.overrideProperty("ooSetupFactoryEmptyDocumentURL", (short) 0, + oObj.overrideProperty("ooSetupFactoryEmptyDocumentURL", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("private:factory/schart"); oObj.endProperty(); - oObj.overrideProperty("ooSetupFactoryIcon", (short) 0, + oObj.overrideProperty("ooSetupFactoryIcon", (short) 0, new Type(java.lang.Long.class), false); oObj.setPropertyValue(new Integer(13)); oObj.endProperty(); - oObj.overrideProperty("ooSetupFactoryShortName", (short) 0, + oObj.overrideProperty("ooSetupFactoryShortName", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("schart"); oObj.setPropertyValueForLocale("TemplateFile", "en-US"); oObj.endProperty(); - oObj.overrideProperty("ooSetupFactoryTemplateFile", (short) 0, + oObj.overrideProperty("ooSetupFactoryTemplateFile", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("empty"); oObj.endProperty(); - oObj.addProperty("ooSetupFactoryTemplateFile", (short) 0, + oObj.addProperty("ooSetupFactoryTemplateFile", (short) 0, new Type(java.lang.String.class)); - oObj.addPropertyWithValue("ooSetupFactoryTemplateFile", (short) 0, + oObj.addPropertyWithValue("ooSetupFactoryTemplateFile", (short) 0, "TemplateFile"); oObj.endNode(); oObj.addOrReplaceNode("dropme", (short) 0); - oObj.overrideProperty("anyway", (short) 0, + oObj.overrideProperty("anyway", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("nice"); oObj.endProperty(); oObj.dropNode("dropme"); oObj.endNode(); - oObj.addOrReplaceNodeFromTemplate("FromTemplate", + oObj.addOrReplaceNodeFromTemplate("FromTemplate", new com.sun.star.configuration.backend.TemplateIdentifier( - "org.openoffice.Setup", + "org.openoffice.Setup", "Setup"), (short) 0); oObj.endNode(); @@ -118,11 +118,11 @@ public class _XLayerHandler extends MultiMethodTest { Object fileacc = ((XMultiServiceFactory) tParam.getMSF()).createInstance( "com.sun.star.comp.ucb.SimpleFileAccess"); XSimpleFileAccess simpleAccess = (XSimpleFileAccess) UnoRuntime.queryInterface( - XSimpleFileAccess.class, + XSimpleFileAccess.class, fileacc); String filename = util.utils.getOfficeTemp( - (XMultiServiceFactory) tParam.getMSF()) + + (XMultiServiceFactory) tParam.getMSF()) + "LayerWriter.xcu"; log.println("Going to parse: " + filename); @@ -130,7 +130,7 @@ public class _XLayerHandler extends MultiMethodTest { xSink.setInputStream(xStream); - XLayer xLayer = (XLayer) UnoRuntime.queryInterface(XLayer.class, + XLayer xLayer = (XLayer) UnoRuntime.queryInterface(XLayer.class, LayerParser); XLayerHandlerImpl xLayerHandler = new XLayerHandlerImpl(); diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java index 39193787a857..6cf29ee71dae 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -32,15 +32,15 @@ import com.sun.star.configuration.backend.XLayerImporter; import lib.MultiMethodTest; public class _XLayerImporter extends MultiMethodTest { - - public XLayerImporter oObj; + + public XLayerImporter oObj; public XBackend xBackend = null; - + public void _getTargetBackend() { xBackend = oObj.getTargetBackend(); tRes.tested("getTargetBackend()", xBackend != null); } - + public void _importLayer() { boolean res = false; log.println("checking for exception is argument null is given"); @@ -49,22 +49,22 @@ public class _XLayerImporter extends MultiMethodTest { log.println("\tException expected -- FAILED"); } catch (com.sun.star.lang.NullPointerException ne) { res = true; - log.println("\tExpected exception was thrown -- OK"); + log.println("\tExpected exception was thrown -- OK"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res = false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res = false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res = false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); } - + log.println("checking own implementation of XLayer"); try { util.XLayerImpl xLayer = new util.XLayerImpl(); - oObj.importLayer(xLayer); + oObj.importLayer(xLayer); if (! xLayer.hasBeenCalled()) { log.println("\tXLayer hasn't been imported -- FAILED"); res &= false; @@ -74,21 +74,21 @@ public class _XLayerImporter extends MultiMethodTest { } } catch (com.sun.star.lang.NullPointerException ne) { res &= false; - log.println("\tExpected exception "+ne+" was thrown -- FAILED"); + log.println("\tExpected exception "+ne+" was thrown -- FAILED"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res &= false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res &= false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res &= false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); - } - - tRes.tested("importLayer()",res); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + } + + tRes.tested("importLayer()",res); } - + public void _importLayerForEntity() { boolean res = false; log.println("checking for exception for argument (null,\"\")"); @@ -97,22 +97,22 @@ public class _XLayerImporter extends MultiMethodTest { log.println("\tException expected -- FAILED"); } catch (com.sun.star.lang.NullPointerException ne) { res = true; - log.println("\tExpected exception was thrown -- OK"); + log.println("\tExpected exception was thrown -- OK"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res = false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res = false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res = false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); } - + log.println("checking own implementation of XLayer"); try { util.XLayerImpl xLayer = new util.XLayerImpl(); - oObj.importLayerForEntity(xLayer,""); + oObj.importLayerForEntity(xLayer,""); if (! xLayer.hasBeenCalled()) { log.println("\tXLayer hasn't been imported -- FAILED"); res &= false; @@ -122,21 +122,21 @@ public class _XLayerImporter extends MultiMethodTest { } } catch (com.sun.star.lang.NullPointerException ne) { res &= false; - log.println("\tExpected exception "+ne+" was thrown -- FAILED"); + log.println("\tExpected exception "+ne+" was thrown -- FAILED"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res &= false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res &= false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res &= false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); - } - - tRes.tested("importLayerForEntity()",res); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + } + + tRes.tested("importLayerForEntity()",res); } - + public void _setTargetBackend() { requiredMethod("getTargetBackend()"); boolean res = false; @@ -148,7 +148,7 @@ public class _XLayerImporter extends MultiMethodTest { res = true; log.println("\tExpected exception was thrown -- OK"); } - + log.println("checking argument previously gained by getTargetBackend"); try { oObj.setTargetBackend(xBackend); @@ -157,10 +157,10 @@ public class _XLayerImporter extends MultiMethodTest { } catch (com.sun.star.lang.NullPointerException ne) { res &= false; log.println("\tException was thrown -- FAILED"); - } - + } + tRes.tested("setTargetBackend()",res); - + } - + } diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java b/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java index aae4743e01fc..46ecb1b7487f 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -88,7 +88,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { log.println("Checking first on "+LayerIds[0]); res &= checkLayer(Layers[0]); log.println("Checking second on "+LayerIds[1]); - res &= checkLayer(Layers[1]); + res &= checkLayer(Layers[1]); } catch (com.sun.star.configuration.backend.BackendAccessException e) { log.println("unexpected Exception -- FAILED"); res = false; @@ -110,14 +110,14 @@ public class _XMultiLayerStratum extends MultiMethodTest { String[] Times = new String[2]; Times[0] = ""; Times[1] = ""; - + XLayer[] Layers = oObj.getMultipleLayers(LayerIds, Times); res = Layers.length == 2; log.println("Getting two XLayers -- OK"); log.println("Checking first on "+LayerIds[0]); res &= checkLayer(Layers[0]); log.println("Checking second on "+LayerIds[1]); - res &= checkLayer(Layers[1]); + res &= checkLayer(Layers[1]); } catch (com.sun.star.configuration.backend.BackendAccessException e) { log.println("unexpected Exception -- FAILED"); res = false; @@ -126,7 +126,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { res = false; } - tRes.tested("getMultipleLayers()", res); + tRes.tested("getMultipleLayers()", res); } public void _getUpdatableLayer() { @@ -166,7 +166,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { res = false; } - tRes.tested("getUpdatableLayer()", res); + tRes.tested("getUpdatableLayer()", res); } public void _getUpdateLayerId() { @@ -174,7 +174,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { try { String UpdateLayerID = oObj.getUpdateLayerId( - "org.openoffice.Office.TypeDetection", + "org.openoffice.Office.TypeDetection", "illegal"); log.println("Exception expected -- FAILED"); res = false; @@ -190,7 +190,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { try { String ent = util.utils.getOfficeURL( - (XMultiServiceFactory) tParam.getMSF()) + + (XMultiServiceFactory) tParam.getMSF()) + "/../share/registry"; String UpdateLayerID = oObj.getUpdateLayerId( "org.openoffice.Office.Linguistic", ent); @@ -220,7 +220,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { try { String[] LayerIDs = oObj.listLayerIds( - "org.openoffice.Office.TypeDetection", + "org.openoffice.Office.TypeDetection", "illegal"); log.println("Exception expected -- FAILED"); res = false; @@ -233,9 +233,9 @@ public class _XMultiLayerStratum extends MultiMethodTest { try { String ent = util.utils.getOfficeURL( - (XMultiServiceFactory) tParam.getMSF()) + + (XMultiServiceFactory) tParam.getMSF()) + "/../share/registry"; - String[] LayerIDs = oObj.listLayerIds("org.openoffice.Office.Jobs", + String[] LayerIDs = oObj.listLayerIds("org.openoffice.Office.Jobs", ent); res &= LayerIDs[0].endsWith("Jobs.xcu"); aLayerID = LayerIDs[0]; diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java b/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java index 36be98ebc1fb..6c4ed22f8782 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,13 +42,13 @@ public class _XSchema extends MultiMethodTest { public XSchema oObj; XSchemaHandlerImpl xSchemaHandlerImpl = new XSchemaHandlerImpl(); String filename = null; - + protected void before() { filename = (String)tEnv.getObjRelation("ParsedFileName"); } - + public void _readComponent() { - requiredMethod("readTemplates()"); + requiredMethod("readTemplates()"); boolean res = false; log.println("Checking for Exception in case of null argument"); @@ -70,10 +70,10 @@ public class _XSchema extends MultiMethodTest { try { xSchemaHandlerImpl.cleanCalls(); oObj.readComponent(xSchemaHandlerImpl); - + String implCalled = xSchemaHandlerImpl.getCalls(); - - System.out.println(implCalled); + + System.out.println(implCalled); int sc = implCalled.indexOf("startComponent"); @@ -134,7 +134,7 @@ public class _XSchema extends MultiMethodTest { xSchemaHandlerImpl.cleanCalls(); oObj.readSchema(xSchemaHandlerImpl); - String implCalled = xSchemaHandlerImpl.getCalls(); + String implCalled = xSchemaHandlerImpl.getCalls(); int sc = implCalled.indexOf("startSchema"); @@ -178,8 +178,8 @@ public class _XSchema extends MultiMethodTest { } catch (com.sun.star.configuration.backend.MalformedDataException e) { log.println("Unexpected Exception (" + e + ") -- FAILED"); } - - tRes.tested("readSchema()", res); + + tRes.tested("readSchema()", res); reopenFile(); } @@ -205,8 +205,8 @@ public class _XSchema extends MultiMethodTest { try { xSchemaHandlerImpl.cleanCalls(); oObj.readComponent(xSchemaHandlerImpl); - - String implCalled = xSchemaHandlerImpl.getCalls(); + + String implCalled = xSchemaHandlerImpl.getCalls(); int sc = implCalled.indexOf("startGroup"); @@ -238,10 +238,10 @@ public class _XSchema extends MultiMethodTest { res &= false; } - tRes.tested("readTemplates()", res); + tRes.tested("readTemplates()", res); reopenFile(); } - + /** * reopen the parsed file again, to avoid the wrapped target exception. */ @@ -251,13 +251,13 @@ public class _XSchema extends MultiMethodTest { try { Object fileacc = ((XMultiServiceFactory)tParam.getMSF()).createInstance("com.sun.star.comp.ucb.SimpleFileAccess"); simpleAccess = (XSimpleFileAccess) - UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); + UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); log.println("Going to parse: "+filename); xStream = simpleAccess.openFileRead(filename); } catch (com.sun.star.uno.Exception e) { - } + } - XActiveDataSink xSink = (XActiveDataSink) UnoRuntime.queryInterface(XActiveDataSink.class, oObj); + XActiveDataSink xSink = (XActiveDataSink) UnoRuntime.queryInterface(XActiveDataSink.class, oObj); xSink.setInputStream(xStream); } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XSchemaSupplier.java b/qadevOOo/tests/java/ifc/configuration/backend/_XSchemaSupplier.java index 99346705b4fb..0df57288bd00 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XSchemaSupplier.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XSchemaSupplier.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -57,7 +57,7 @@ public class _XSchemaSupplier extends MultiMethodTest { } tRes.tested("getComponentSchema()",res); } - + protected boolean checkSchema(XSchema aSchema) { boolean res = false; XSchemaHandlerImpl xSchemaHandlerImpl = new XSchemaHandlerImpl(); @@ -80,8 +80,8 @@ public class _XSchemaSupplier extends MultiMethodTest { try { aSchema.readComponent(xSchemaHandlerImpl); - - String implCalled = xSchemaHandlerImpl.getCalls(); + + String implCalled = xSchemaHandlerImpl.getCalls(); int sc = implCalled.indexOf("startComponent"); if (sc < 0) { @@ -112,7 +112,7 @@ public class _XSchemaSupplier extends MultiMethodTest { res &= false; } - return res; - + return res; + } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java b/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java index 32049d8f7015..92c90499be0f 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,70 +49,70 @@ public class _XUpdateHandler extends MultiMethodTest { try { xLayerHandler.startLayer(); - xLayerHandler.overrideNode("org.openoffice.Setup", (short) 0, + xLayerHandler.overrideNode("org.openoffice.Setup", (short) 0, false); xLayerHandler.overrideNode("Office", (short) 0, false); - xLayerHandler.overrideProperty("ooSetupInstCompleted", (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupInstCompleted", (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue(new Boolean(false)); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupShowIntro", (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupShowIntro", (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue(new Boolean(true)); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupLocales", (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupLocales", (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("en-US"); xLayerHandler.endProperty(); xLayerHandler.overrideNode("Factories", (short) 0, false); - xLayerHandler.addOrReplaceNode("com.sun.star.chart.ChartDocument", + xLayerHandler.addOrReplaceNode("com.sun.star.chart.ChartDocument", (short) 0); - xLayerHandler.overrideProperty("ooSetupFactoryEmptyDocumentURL", - (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupFactoryEmptyDocumentURL", + (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("private:factory/schart"); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupFactoryIcon", (short) 0, - new Type(java.lang.Long.class), + xLayerHandler.overrideProperty("ooSetupFactoryIcon", (short) 0, + new Type(java.lang.Long.class), false); xLayerHandler.setPropertyValue(new Integer(13)); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupFactoryShortName", - (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupFactoryShortName", + (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("schart"); xLayerHandler.setPropertyValueForLocale("TemplateFile", "en-US"); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupFactoryTemplateFile", - (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupFactoryTemplateFile", + (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("empty"); xLayerHandler.endProperty(); - xLayerHandler.addProperty("ooSetupFactoryTemplateFile", (short) 0, + xLayerHandler.addProperty("ooSetupFactoryTemplateFile", (short) 0, new Type(java.lang.String.class)); - xLayerHandler.addPropertyWithValue("ooSetupFactoryTemplateFile", + xLayerHandler.addPropertyWithValue("ooSetupFactoryTemplateFile", (short) 0, "TemplateFile"); xLayerHandler.endNode(); xLayerHandler.addOrReplaceNode("dropme", (short) 0); - xLayerHandler.overrideProperty("anyway", (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("anyway", (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("nice"); xLayerHandler.endProperty(); xLayerHandler.dropNode("dropme"); xLayerHandler.endNode(); - xLayerHandler.addOrReplaceNodeFromTemplate("FromTemplate", + xLayerHandler.addOrReplaceNodeFromTemplate("FromTemplate", new com.sun.star.configuration.backend.TemplateIdentifier( - "org.openoffice.Setup", - "Setup"), + "org.openoffice.Setup", + "Setup"), (short) 0); xLayerHandler.endNode(); @@ -217,17 +217,17 @@ public class _XUpdateHandler extends MultiMethodTest { log.println("Layer called (before): " + xLayer.hasBeenCalled()); oObj.startUpdate(); oObj.addOrReplaceNode("whatever", (short) 0); - oObj.addOrReplaceNodeFromTemplate("Office", (short) 0, + oObj.addOrReplaceNodeFromTemplate("Office", (short) 0, new TemplateIdentifier()); - oObj.addOrReplaceProperty("prop", (short) 0, + oObj.addOrReplaceProperty("prop", (short) 0, new Type(java.lang.String.class)); oObj.addOrReplacePropertyWithValue("prop2", (short) 0, "this"); - oObj.modifyProperty("ooSetupFactoryIcon", (short) 0, (short) 0, + oObj.modifyProperty("ooSetupFactoryIcon", (short) 0, (short) 0, new Type(java.lang.String.class)); oObj.resetPropertyValue(); oObj.resetPropertyValueForLocale("en-US"); oObj.endProperty(); - oObj.modifyProperty("ooSetupFactoryEmptyDocumentURL", (short) 0, + oObj.modifyProperty("ooSetupFactoryEmptyDocumentURL", (short) 0, (short) 0, new Type(java.lang.String.class)); oObj.setPropertyValue("newValue"); oObj.setPropertyValueForLocale("newValue-US", "de-DE"); |