diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/lang')
12 files changed, 32 insertions, 32 deletions
diff --git a/qadevOOo/tests/java/ifc/lang/_ServiceManager.java b/qadevOOo/tests/java/ifc/lang/_ServiceManager.java index d2e84e748c6a..0d96ffbbf2c0 100644 --- a/qadevOOo/tests/java/ifc/lang/_ServiceManager.java +++ b/qadevOOo/tests/java/ifc/lang/_ServiceManager.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/lang/_XComponent.java b/qadevOOo/tests/java/ifc/lang/_XComponent.java index e7493e377141..9e443916add0 100644 --- a/qadevOOo/tests/java/ifc/lang/_XComponent.java +++ b/qadevOOo/tests/java/ifc/lang/_XComponent.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 @@ -52,7 +52,7 @@ public class _XComponent extends MultiMethodTest { public static XComponent oObj = null; private XNameContainer xContainer = null; private XComponent altDispose = null; - + boolean listenerDisposed[] = new boolean[2]; String[] Loutput = new String[2]; @@ -91,7 +91,7 @@ public class _XComponent extends MultiMethodTest { altDispose = (XComponent)tEnv.getObjRelation("XComponent.DisposeThis"); } - + /** * Adds two listeners. <p> * Has OK status if then the first listener will receive an event @@ -145,15 +145,15 @@ public class _XComponent extends MultiMethodTest { log.println( "begin dispose in thread " + Thread.currentThread()); XDesktop oDesk = (XDesktop) tEnv.getObjRelation("Desktop"); if (oDesk !=null) { - oDesk.terminate(); + oDesk.terminate(); } else { - if (altDispose == null) - oObj.dispose(); + if (altDispose == null) + oObj.dispose(); else altDispose.dispose(); } - + try { Thread.sleep(500) ; } catch (InterruptedException e) {} diff --git a/qadevOOo/tests/java/ifc/lang/_XEventListener.java b/qadevOOo/tests/java/ifc/lang/_XEventListener.java index a2748309dcc0..0a93d54711f2 100644 --- a/qadevOOo/tests/java/ifc/lang/_XEventListener.java +++ b/qadevOOo/tests/java/ifc/lang/_XEventListener.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/lang/_XInitialization.java b/qadevOOo/tests/java/ifc/lang/_XInitialization.java index 4ce7fe05a410..bf7d3fb3ff5f 100644 --- a/qadevOOo/tests/java/ifc/lang/_XInitialization.java +++ b/qadevOOo/tests/java/ifc/lang/_XInitialization.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 @@ -55,11 +55,11 @@ public class _XInitialization extends MultiMethodTest { */ public void _initialize() { boolean result = true ; - + try { XInitialization xInit = (XInitialization) tEnv.getObjRelation("XInitialization.xIni"); if (xInit == null) xInit = oObj; - + log.println("calling method with valid arguments..."); Object[] args = (Object[]) tEnv.getObjRelation("XInitialization.args"); if (args==null) { @@ -68,7 +68,7 @@ public class _XInitialization extends MultiMethodTest { } else { xInit.initialize(args); } - + // try to call the method with invalid parameters Object[] ExArgs = (Object[]) tEnv.getObjRelation("XInitialization.ExceptionArgs"); if (ExArgs !=null) { @@ -83,7 +83,7 @@ public class _XInitialization extends MultiMethodTest { log.println("Expected Exception 'com.sun.star.uno.RuntimeException' occured -> OK") ; result = true ; } catch (Exception e) { - log.println("Un-Expected Exception occured -> FALSE") ; + log.println("Un-Expected Exception occured -> FALSE") ; log.println(e.toString()); e.printStackTrace(); } diff --git a/qadevOOo/tests/java/ifc/lang/_XLocalizable.java b/qadevOOo/tests/java/ifc/lang/_XLocalizable.java index fd2f503c0529..e305063a1de2 100644 --- a/qadevOOo/tests/java/ifc/lang/_XLocalizable.java +++ b/qadevOOo/tests/java/ifc/lang/_XLocalizable.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 @@ -56,13 +56,13 @@ public class _XLocalizable extends MultiMethodTest { oObj.setLocale(newLocale); Locale getLocale = oObj.getLocale(); - boolean res = ((getLocale.Country.equals(newLocale.Country)) && + boolean res = ((getLocale.Country.equals(newLocale.Country)) && (getLocale.Language.equals(newLocale.Language))); if (!res) { - log.println("Expected Language " + newLocale.Language + + log.println("Expected Language " + newLocale.Language + " and Country " + newLocale.Country); - log.println("Getting Language " + getLocale.Language + + log.println("Getting Language " + getLocale.Language + " and Country " + getLocale.Country); } diff --git a/qadevOOo/tests/java/ifc/lang/_XMain.java b/qadevOOo/tests/java/ifc/lang/_XMain.java index e1cecaeb1849..ab3954ec3c55 100644 --- a/qadevOOo/tests/java/ifc/lang/_XMain.java +++ b/qadevOOo/tests/java/ifc/lang/_XMain.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/lang/_XMultiComponentFactory.java b/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java index 4abeca730765..5c2bb53c81d6 100644 --- a/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java +++ b/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.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,7 +49,7 @@ public class _XMultiComponentFactory extends MultiMethodTest { public XComponentContext xContext = null; private String[] availableServiceNames = null; - + public void before(){ xContext = (XComponentContext)tEnv.getObjRelation("DC"); availableServiceNames = (String[])tEnv.getObjRelation("XMultiComponentFactory.ServiceNames"); @@ -88,7 +88,7 @@ public class _XMultiComponentFactory extends MultiMethodTest { requiredMethod("getAvailableServiceNames()"); boolean result = true; XInterface component = null; - + try { component = (XInterface)oObj.createInstanceWithArgumentsAndContext( availableServiceNames[0], new Object[0], xContext); diff --git a/qadevOOo/tests/java/ifc/lang/_XMultiServiceFactory.java b/qadevOOo/tests/java/ifc/lang/_XMultiServiceFactory.java index 49d3be1daf35..5eafe0a7fa3c 100644 --- a/qadevOOo/tests/java/ifc/lang/_XMultiServiceFactory.java +++ b/qadevOOo/tests/java/ifc/lang/_XMultiServiceFactory.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 @@ -117,14 +117,14 @@ public class _XMultiServiceFactory extends MultiMethodTest { String needArgs = (String) tEnv.getObjRelation("needArgs"); if (needArgs != null) { - log.println("The " + needArgs + + log.println("The " + needArgs + " doesn't support createInstance without arguments"); tRes.tested("createInstance()", true); return; } - boolean res = true; + boolean res = true; for (int k = 0; k < services.length; k++) { try { @@ -165,7 +165,7 @@ public class _XMultiServiceFactory extends MultiMethodTest { if (args == null) { log.println("Relation 'XMSF.serviceNamesWithArgs' not found"); - log.println("The component assumed not support " + + log.println("The component assumed not support " + "createInstanceWithArguments()"); tRes.tested("createInstanceWithArguments()", true); } else { @@ -176,11 +176,11 @@ public class _XMultiServiceFactory extends MultiMethodTest { boolean res = true; for (int k = 0; k < sNames.length; k++) { - log.println("Creating service '" + sNames[k] + + log.println("Creating service '" + sNames[k] + "' with arguments"); try { - Object Inst = oObj.createInstanceWithArguments(sNames[k], + Object Inst = oObj.createInstanceWithArguments(sNames[k], args[k]); res &= (Inst != null); } catch (com.sun.star.uno.Exception ex) { diff --git a/qadevOOo/tests/java/ifc/lang/_XServiceDisplayName.java b/qadevOOo/tests/java/ifc/lang/_XServiceDisplayName.java index 1a7884b8f02d..50f56583d57b 100644 --- a/qadevOOo/tests/java/ifc/lang/_XServiceDisplayName.java +++ b/qadevOOo/tests/java/ifc/lang/_XServiceDisplayName.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/lang/_XServiceInfo.java b/qadevOOo/tests/java/ifc/lang/_XServiceInfo.java index 3ff929c895dd..0eed0e8c67e6 100644 --- a/qadevOOo/tests/java/ifc/lang/_XServiceInfo.java +++ b/qadevOOo/tests/java/ifc/lang/_XServiceInfo.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/lang/_XSingleServiceFactory.java b/qadevOOo/tests/java/ifc/lang/_XSingleServiceFactory.java index 1bc68938ce41..1bba7b25cc3b 100644 --- a/qadevOOo/tests/java/ifc/lang/_XSingleServiceFactory.java +++ b/qadevOOo/tests/java/ifc/lang/_XSingleServiceFactory.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/lang/_XTypeProvider.java b/qadevOOo/tests/java/ifc/lang/_XTypeProvider.java index 123f7729fb5a..940f1fb90427 100644 --- a/qadevOOo/tests/java/ifc/lang/_XTypeProvider.java +++ b/qadevOOo/tests/java/ifc/lang/_XTypeProvider.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 |