diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/util')
26 files changed, 134 insertions, 134 deletions
diff --git a/qadevOOo/tests/java/ifc/util/_PathSettings.java b/qadevOOo/tests/java/ifc/util/_PathSettings.java index b9411a2ccfb3..32016d8e2711 100644 --- a/qadevOOo/tests/java/ifc/util/_PathSettings.java +++ b/qadevOOo/tests/java/ifc/util/_PathSettings.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/util/_SearchDescriptor.java b/qadevOOo/tests/java/ifc/util/_SearchDescriptor.java index e24913e933bd..26215a0f8c54 100644 --- a/qadevOOo/tests/java/ifc/util/_SearchDescriptor.java +++ b/qadevOOo/tests/java/ifc/util/_SearchDescriptor.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/util/_XCancellable.java b/qadevOOo/tests/java/ifc/util/_XCancellable.java index cd7ffc0840b5..bf8b2df73e27 100644 --- a/qadevOOo/tests/java/ifc/util/_XCancellable.java +++ b/qadevOOo/tests/java/ifc/util/_XCancellable.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/util/_XChangesBatch.java b/qadevOOo/tests/java/ifc/util/_XChangesBatch.java index 397ac79e3922..f78838bcc687 100644 --- a/qadevOOo/tests/java/ifc/util/_XChangesBatch.java +++ b/qadevOOo/tests/java/ifc/util/_XChangesBatch.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 @@ -37,14 +37,14 @@ import lib.Status; import lib.StatusException; public class _XChangesBatch extends MultiMethodTest { - - public XChangesBatch oObj; + + public XChangesBatch oObj; private Object changeElement = null; private Object originalElement = null; private String elementName = null; private XPropertySet xProp = null; private XNameReplace xNameReplace = null; - + /** * add a change that can be committed */ @@ -72,7 +72,7 @@ public class _XChangesBatch extends MultiMethodTest { catch(com.sun.star.uno.Exception e) { throw new StatusException("Could not get element by name '" + elementName + "'.", e); } - + if (changeElement == null || originalElement == null || elementName == null || (xProp == null && xNameReplace == null)) { log.println( changeElement == null?"Missing property 'XChangesBatch.ChangeElement'\n":"" + @@ -84,7 +84,7 @@ public class _XChangesBatch extends MultiMethodTest { throw new StatusException("Some needed object relations are missing.", new Exception()); } } - + public void _commitChanges() { requiredMethod("getPendingChanges()"); try { @@ -113,7 +113,7 @@ public class _XChangesBatch extends MultiMethodTest { } tRes.tested("commitChanges()", true); } - + public void _getPendingChanges() { requiredMethod("hasPendingChanges()"); ElementChange[]changes = oObj.getPendingChanges(); @@ -126,9 +126,9 @@ public class _XChangesBatch extends MultiMethodTest { log.println("Found not the right number of changes: " + amount); log.println("It should have been 1 change."); for (int i=0; i<amount; i++) { - System.out.println("Detailed Change " + i + " -> new Element: '" + - changes[i].Element.toString() + "' ReplacedElement: '" + - changes[i].ReplacedElement.toString() + "'"); + System.out.println("Detailed Change " + i + " -> new Element: '" + + changes[i].Element.toString() + "' ReplacedElement: '" + + changes[i].ReplacedElement.toString() + "'"); } tRes.tested("getPendingChanges()", false); } @@ -138,7 +138,7 @@ public class _XChangesBatch extends MultiMethodTest { tRes.tested("getPendingChanges()", result); } } - + public void _hasPendingChanges() { try { executeChange(changeElement); @@ -150,7 +150,7 @@ public class _XChangesBatch extends MultiMethodTest { boolean hasPendingChanges = oObj.hasPendingChanges(); tRes.tested("hasPendingChanges()", hasPendingChanges); } - + private void executeChange(Object element) throws StatusException { if (xProp != null) { try { diff --git a/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java b/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java index 6899f13d8ae2..8abe0e5b1442 100644 --- a/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java +++ b/qadevOOo/tests/java/ifc/util/_XChangesNotifier.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 @@ -43,16 +43,16 @@ import lib.MultiMethodTest; * @see com.sun.star.util.XChangesBatch */ public class _XChangesNotifier extends MultiMethodTest { - + public XChangesNotifier oObj = null; - private XChangesBatch xBatch = null; + private XChangesBatch xBatch = null; private Object changeElement = null; private Object originalElement = null; private String elementName = null; private XPropertySet xProp = null; private XNameReplace xNameReplace = null; - private _XChangesNotifier.MyChangesListener xListener = null; - + private _XChangesNotifier.MyChangesListener xListener = null; + /** * Own implementation of the XChangesListener interface * @see com.sun.star.util.XChangesListener @@ -60,28 +60,28 @@ public class _XChangesNotifier extends MultiMethodTest { private static class MyChangesListener implements XChangesListener { /** Just lo a call of the listener **/ boolean bChangesOccured = false; - - /** A change did occur + + /** A change did occur * @param changesEvent The event. **/ public void changesOccurred(com.sun.star.util.ChangesEvent changesEvent) { bChangesOccured = true; } - + /** Disposing of the listener * @param eventObject The event. **/ public void disposing(com.sun.star.lang.EventObject eventObject) { bChangesOccured = true; } - + /** * Reset the listener */ public void reset() { bChangesOccured = false; } - + /** * Has the listener been called? * @return True, if the listener has been called. @@ -100,7 +100,7 @@ public class _XChangesNotifier extends MultiMethodTest { changeElement = tEnv.getObjRelation("XChangesNotifier.ChangeElement"); originalElement = tEnv.getObjRelation("XChangesNotifier.OriginalElement"); elementName = (String)tEnv.getObjRelation("XChangesNotifier.PropertyName"); - + xProp = (XPropertySet)tEnv.getObjRelation("XChangesNotifier.PropertySet"); try { if (originalElement == null && xProp != null) @@ -131,7 +131,7 @@ public class _XChangesNotifier extends MultiMethodTest { ); throw new StatusException("Some needed object relations are missing.", new Exception()); } - + xListener = new _XChangesNotifier.MyChangesListener(); } @@ -140,7 +140,7 @@ public class _XChangesNotifier extends MultiMethodTest { oObj.addChangesListener(xListener); tRes.tested("addChangesListener()", true); } - + /** test removeChangesListener **/ public void _removeChangesListener() { requiredMethod("addChangesListener()"); @@ -155,10 +155,10 @@ public class _XChangesNotifier extends MultiMethodTest { boolean result2 = xListener.didChangesOccur(); if (result2) log.println("Removed listener has been called."); - + tRes.tested("removeChangesListener()", result && !result2); } - + /** * Commit a change, using an implementation of the XChangesBatch interface. * @return true, if changing worked. @@ -192,9 +192,9 @@ public class _XChangesNotifier extends MultiMethodTest { } return true; } - + /** - * Execute the change, use XPropertySet or XNameReplace + * Execute the change, use XPropertySet or XNameReplace * @return False, if changing did throw an exception. */ private boolean executeChange(Object element) throws StatusException { diff --git a/qadevOOo/tests/java/ifc/util/_XCloneable.java b/qadevOOo/tests/java/ifc/util/_XCloneable.java index 4591be5cfc2e..85ffe637237c 100644 --- a/qadevOOo/tests/java/ifc/util/_XCloneable.java +++ b/qadevOOo/tests/java/ifc/util/_XCloneable.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 @@ -48,7 +48,7 @@ public class _XCloneable extends MultiMethodTest { // oObj filled by MultiMethodTest public XCloneable oObj = null ; protected XCloneable clone = null; - + /** * calls the method. <p> * Has <b>OK</b> status if no exception has occured. <p> @@ -59,23 +59,23 @@ public class _XCloneable extends MultiMethodTest { //check if the implementaionname equals result &= checkImplementationName(oObj,clone); - + //check ImplementationID result &= checkImplementationID(oObj, clone); - + tRes.tested("createClone()", result) ; } - + protected byte[] getImplementationID(XInterface ifc) { byte[] res = new byte[0]; - XTypeProvider provider = (XTypeProvider) + XTypeProvider provider = (XTypeProvider) UnoRuntime.queryInterface(XTypeProvider.class, ifc); if (provider != null) { res = provider.getImplementationId(); } return res; - } - + } + protected boolean checkImplementationID(XInterface org, XInterface clone) { boolean res = getImplementationID(org).equals( getImplementationID(clone)); @@ -84,18 +84,18 @@ public class _XCloneable extends MultiMethodTest { log.println("------------------------------------------------------------------------"); } return !res; - } - + } + protected String getImplementationName(XInterface ifc) { String res = ""; - XServiceInfo info = (XServiceInfo) + XServiceInfo info = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, ifc); if (info != null) { res = info.getImplementationName(); } return res; } - + protected boolean checkImplementationName(XInterface org, XInterface clone) { boolean res = getImplementationName(org).equals( getImplementationName(clone)); diff --git a/qadevOOo/tests/java/ifc/util/_XFlushable.java b/qadevOOo/tests/java/ifc/util/_XFlushable.java index c18d84e5d5f6..0cf4df3ef1c9 100644 --- a/qadevOOo/tests/java/ifc/util/_XFlushable.java +++ b/qadevOOo/tests/java/ifc/util/_XFlushable.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/util/_XImportable.java b/qadevOOo/tests/java/ifc/util/_XImportable.java index 164f8e4aaa3e..a35d6290bc24 100644 --- a/qadevOOo/tests/java/ifc/util/_XImportable.java +++ b/qadevOOo/tests/java/ifc/util/_XImportable.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 @@ -45,7 +45,7 @@ public class _XImportable extends MultiMethodTest { "DatabaseName", "SourceType", "SourceObject", "IsNative" }; protected Type[] types = new Type[] { - new Type(String.class), new Type(com.sun.star.sheet.DataImportMode.class), + new Type(String.class), new Type(com.sun.star.sheet.DataImportMode.class), new Type(String.class), new Type(Boolean.class) }; @@ -54,7 +54,7 @@ public class _XImportable extends MultiMethodTest { * in com.sun.star.sheet.DatabaseImportDescriptor.<br> * Returns OK state is all propertynames and types are the specified. */ - + public void _createImportDescriptor() { boolean res = true; boolean locResult = false; @@ -99,33 +99,33 @@ public class _XImportable extends MultiMethodTest { public void _doImport() { requiredMethod("createImportDescriptor()"); boolean res = true; - + log.print("Setting the ImportDescriptor (Bibliograpy, Table, biblio) -- "); descriptor[0].Value = "Bibliography"; descriptor[1].Value = com.sun.star.sheet.DataImportMode.TABLE; descriptor[2].Value = "biblio"; log.println("done"); - + log.print("Importing data (Bibliograpy, Table, biblio) -- "); oObj.doImport(descriptor); log.println("done"); - + log.println("Checking data"); res &= checkA1("Identifier"); - + log.print("Setting the ImportDescriptor (Bibliograpy, SQL, select Author from biblio) -- "); descriptor[0].Value = "Bibliography"; descriptor[1].Value = com.sun.star.sheet.DataImportMode.SQL; descriptor[2].Value = "select Author from biblio"; log.println("done"); - + log.print("Importing data (Bibliograpy, SQL, select Author from biblio) -- "); oObj.doImport(descriptor); log.println("done"); - + log.println("Checking data"); - res &= checkA1("Author"); - + res &= checkA1("Author"); + tRes.tested("doImport()",res); } @@ -172,7 +172,7 @@ public class _XImportable extends MultiMethodTest { return res; } - + protected boolean checkA1(String expected) { XCellRange range = (XCellRange) UnoRuntime.queryInterface(XCellRange.class, tEnv.getTestObject()); boolean res = false; @@ -198,5 +198,5 @@ public class _XImportable extends MultiMethodTest { protected void after() { disposeEnvironment(); } - + }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/util/_XIndent.java b/qadevOOo/tests/java/ifc/util/_XIndent.java index a02897b0e3c1..0900e8c3dfcd 100644 --- a/qadevOOo/tests/java/ifc/util/_XIndent.java +++ b/qadevOOo/tests/java/ifc/util/_XIndent.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 @@ -47,9 +47,9 @@ public class _XIndent extends MultiMethodTest { // oObj filled by MultiMethodTest public XIndent oObj = null ; - + protected XPropertySet PropSet = null; - + /** * Ensures that the ObjRelation PropSet is given. */ @@ -58,7 +58,7 @@ public class _XIndent extends MultiMethodTest { if (PropSet == null) { throw new StatusException(Status.failed("No PropertySet given")); } - } + } /** * Calls the method. <p> @@ -70,7 +70,7 @@ public class _XIndent extends MultiMethodTest { int newValue = getIndent(); tRes.tested("incrementIndent()", oldValue < newValue) ; } - + /** * Calls the method. <p> * Has <b>OK</b> status if the property 'ParaIndent' is decremented afterwards<p> @@ -82,7 +82,7 @@ public class _XIndent extends MultiMethodTest { oObj.decrementIndent(); int newValue = getIndent(); tRes.tested("decrementIndent()", oldValue > newValue) ; - } + } public short getIndent() { short ret = 0; diff --git a/qadevOOo/tests/java/ifc/util/_XMergeable.java b/qadevOOo/tests/java/ifc/util/_XMergeable.java index 860811246727..556fd5dd74f9 100644 --- a/qadevOOo/tests/java/ifc/util/_XMergeable.java +++ b/qadevOOo/tests/java/ifc/util/_XMergeable.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/util/_XModeSelector.java b/qadevOOo/tests/java/ifc/util/_XModeSelector.java index fddf9850ca02..cc0525e1c281 100644 --- a/qadevOOo/tests/java/ifc/util/_XModeSelector.java +++ b/qadevOOo/tests/java/ifc/util/_XModeSelector.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/util/_XModifiable.java b/qadevOOo/tests/java/ifc/util/_XModifiable.java index 86f8f8d4b086..0516aa58a50b 100644 --- a/qadevOOo/tests/java/ifc/util/_XModifiable.java +++ b/qadevOOo/tests/java/ifc/util/_XModifiable.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/util/_XModifyBroadcaster.java b/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java index 34ca57c63cfe..f9d314e71991 100644 --- a/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java +++ b/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.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/util/_XNumberFormatsSupplier.java b/qadevOOo/tests/java/ifc/util/_XNumberFormatsSupplier.java index 02595f886b8e..468f7f6b13cf 100644 --- a/qadevOOo/tests/java/ifc/util/_XNumberFormatsSupplier.java +++ b/qadevOOo/tests/java/ifc/util/_XNumberFormatsSupplier.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/util/_XNumberFormatter.java b/qadevOOo/tests/java/ifc/util/_XNumberFormatter.java index 4dab4f5c5b2b..c1d3380d7352 100644 --- a/qadevOOo/tests/java/ifc/util/_XNumberFormatter.java +++ b/qadevOOo/tests/java/ifc/util/_XNumberFormatter.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/util/_XProtectable.java b/qadevOOo/tests/java/ifc/util/_XProtectable.java index 1e61ee4fa840..5879d76a0b95 100644 --- a/qadevOOo/tests/java/ifc/util/_XProtectable.java +++ b/qadevOOo/tests/java/ifc/util/_XProtectable.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 @@ -35,7 +35,7 @@ import lib.MultiMethodTest; public class _XProtectable extends MultiMethodTest { public XProtectable oObj = null; String sPassWord = "TopSecret"; - + /** * Check, if the sheet is protected. * Has OK status, if this is the case. @@ -45,7 +45,7 @@ public class _XProtectable extends MultiMethodTest { boolean result = oObj.isProtected(); tRes.tested("isProtected()", result); } - + /** * Protect the sheet */ @@ -53,7 +53,7 @@ public class _XProtectable extends MultiMethodTest { oObj.protect(sPassWord); tRes.tested("protect()", true); } - + /** * Unprotect with wrong password, see if it's still protected. * Unprotect with correct password, see if it's unprotected. @@ -80,5 +80,5 @@ public class _XProtectable extends MultiMethodTest { result &= !oObj.isProtected(); tRes.tested("unprotect()", result); } - + } diff --git a/qadevOOo/tests/java/ifc/util/_XRefreshable.java b/qadevOOo/tests/java/ifc/util/_XRefreshable.java index 7b1eb0ad0db5..73b95bbcb85f 100644 --- a/qadevOOo/tests/java/ifc/util/_XRefreshable.java +++ b/qadevOOo/tests/java/ifc/util/_XRefreshable.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/util/_XReplaceDescriptor.java b/qadevOOo/tests/java/ifc/util/_XReplaceDescriptor.java index e4a3a5c2ba56..c5a6e00324f4 100644 --- a/qadevOOo/tests/java/ifc/util/_XReplaceDescriptor.java +++ b/qadevOOo/tests/java/ifc/util/_XReplaceDescriptor.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/util/_XReplaceable.java b/qadevOOo/tests/java/ifc/util/_XReplaceable.java index 9f2a801cfcbf..c58d66b10468 100644 --- a/qadevOOo/tests/java/ifc/util/_XReplaceable.java +++ b/qadevOOo/tests/java/ifc/util/_XReplaceable.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,11 +57,11 @@ public class _XReplaceable extends MultiMethodTest { private String mReplaceString = "** xTextDoc"; private boolean mDispose = false; - /** - * Creates an entry to search for, if the current object does not provide - * one. In this case, the environment is disposed after the test, since + /** + * Creates an entry to search for, if the current object does not provide + * one. In this case, the environment is disposed after the test, since * the inserted object may influence following tests. - * + * */ protected void before() { Object o = tEnv.getObjRelation("SEARCHSTRING"); @@ -80,7 +80,7 @@ public class _XReplaceable extends MultiMethodTest { } else { log.println("Needed object relation 'XSearchable.MAKEENTRYINCELL' is there, but is of type '" - + o.getClass().getName() + "'. Should be 'XCell' or 'XCell[]' instead."); + + o.getClass().getName() + "'. Should be 'XCell' or 'XCell[]' instead."); } for (int i=0; i<cells.length; i++) { cells[i].setFormula(mSearchString); @@ -88,7 +88,7 @@ public class _XReplaceable extends MultiMethodTest { mDispose = true; } } - + /** * Creates the descriptor for replacing string 'xTextDoc' * with string '** xTextDoc'. <p> @@ -130,7 +130,7 @@ public class _XReplaceable extends MultiMethodTest { Rdesc.setReplaceString(mSearchString); oObj.replaceAll(Rdesc); res &= (oObj.findFirst(SDesc) == null); - + tRes.tested("replaceAll()",res); } diff --git a/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java b/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java index 4b9b8e14abee..ee17a6de0847 100644 --- a/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java +++ b/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.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/util/_XSearchable.java b/qadevOOo/tests/java/ifc/util/_XSearchable.java index 91c3014387df..eefff1b560a9 100644 --- a/qadevOOo/tests/java/ifc/util/_XSearchable.java +++ b/qadevOOo/tests/java/ifc/util/_XSearchable.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 @@ -60,11 +60,11 @@ public class _XSearchable extends MultiMethodTest { private boolean mDispose = false; private boolean mExcludeFindNext = false; - /** - * Creates an entry to search for, if the current object does not provide - * one. In this case, the environment is disposed after the test, since + /** + * Creates an entry to search for, if the current object does not provide + * one. In this case, the environment is disposed after the test, since * the inserted object may influence following tests. - * + * */ protected void before() { Object o = tEnv.getObjRelation("SEARCHSTRING"); @@ -82,7 +82,7 @@ public class _XSearchable extends MultiMethodTest { } else { log.println("Needed object relation 'XSearchable.MAKEENTRYINCELL' is there, but is of type '" - + o.getClass().getName() + "'. Should be 'XCell' or 'XCell[]' instead."); + + o.getClass().getName() + "'. Should be 'XCell' or 'XCell[]' instead."); } for (int i=0; i<cells.length; i++) { cells[i].setFormula(mSearchString); @@ -91,7 +91,7 @@ public class _XSearchable extends MultiMethodTest { } mExcludeFindNext = (tEnv.getObjRelation("EXCLUDEFINDNEXT")==null)?false:true; } - + /** * Creates the search descriptor which searches for * 'xTextDoc' string. <p> @@ -158,7 +158,7 @@ public class _XSearchable extends MultiMethodTest { */ public void _findNext() { if (mExcludeFindNext) { - log.println("Testing findNext() excluded, because only one" + + log.println("Testing findNext() excluded, because only one" + " search result is available."); tRes.tested("findNext()", true); } diff --git a/qadevOOo/tests/java/ifc/util/_XSortable.java b/qadevOOo/tests/java/ifc/util/_XSortable.java index f0d78305420d..f6b951b2f4e9 100644 --- a/qadevOOo/tests/java/ifc/util/_XSortable.java +++ b/qadevOOo/tests/java/ifc/util/_XSortable.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 @@ -85,18 +85,18 @@ public class _XSortable extends MultiMethodTest { bResult = true; for (int k = 0; k < oPV.length; k++) { - log.println("DescriptorProperty " + k + ": Name=" + + log.println("DescriptorProperty " + k + ": Name=" + oPV[k].Name + "; Value=" + oPV[k].Value); if (oPV[k].Name.equals("SortFields")) { TableSortField[] tsf = (TableSortField[]) oPV[k].Value; for (int l = 0; l < tsf.length; l++) { - log.println("\t isAscending: " + + log.println("\t isAscending: " + tsf[l].IsAscending); - log.println("\t IsCaseSensitive: " + + log.println("\t IsCaseSensitive: " + tsf[l].IsCaseSensitive); - log.println("\t CollatorAlgorithm: " + + log.println("\t CollatorAlgorithm: " + tsf[l].CollatorAlgorithm); } } @@ -158,7 +158,7 @@ public class _XSortable extends MultiMethodTest { tRes.tested("sort()", res); } - protected void modifyDescriptor(boolean isSortNumeric, + protected void modifyDescriptor(boolean isSortNumeric, boolean isSortAscending) { for (int i = 0; i < oPV.length; i++) { if (oPV[i].Name.equals("SortFields")) { @@ -197,18 +197,18 @@ public class _XSortable extends MultiMethodTest { if (oPV.length > 0) { for (int k = 0; k < oPV.length; k++) { - log.println("DescriptorProperty " + k + ": Name=" + + log.println("DescriptorProperty " + k + ": Name=" + oPV[k].Name + "; Value=" + oPV[k].Value); if (oPV[k].Name.equals("SortFields")) { TableSortField[] tsf = (TableSortField[]) oPV[k].Value; for (int l = 0; l < tsf.length; l++) { - log.println("\t isAscending: " + + log.println("\t isAscending: " + tsf[l].IsAscending); - log.println("\t IsCaseSensitive: " + + log.println("\t IsCaseSensitive: " + tsf[l].IsCaseSensitive); - log.println("\t CollatorAlgorithm: " + + log.println("\t CollatorAlgorithm: " + tsf[l].CollatorAlgorithm); } } @@ -222,17 +222,17 @@ public class _XSortable extends MultiMethodTest { public static interface XSortChecker { public void prepareToSort(); - public boolean checkSort(boolean isSortNumbering, + public boolean checkSort(boolean isSortNumbering, boolean isSortAscending); public void setPrintWriter(PrintWriter log); } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } - + } + } // finish class _XSortable diff --git a/qadevOOo/tests/java/ifc/util/_XStringEscape.java b/qadevOOo/tests/java/ifc/util/_XStringEscape.java index 4673526fc243..22bf326f1cd6 100644 --- a/qadevOOo/tests/java/ifc/util/_XStringEscape.java +++ b/qadevOOo/tests/java/ifc/util/_XStringEscape.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 com.sun.star.util.XStringEscape; public class _XStringEscape extends MultiMethodTest { - + public XStringEscape oObj; - + public void _escapeString() { log.println("The Implementation of this Interface doesn't really do anything"); boolean res = true; try { - String toCheck = ";:<>/*"; + String toCheck = ";:<>/*"; String eString = oObj.escapeString(toCheck); res = toCheck.equals(eString); } catch (com.sun.star.lang.IllegalArgumentException e) { @@ -47,18 +47,18 @@ public class _XStringEscape extends MultiMethodTest { } tRes.tested("escapeString()",res); } - + public void _unescapeString() { log.println("The Implementation of this Interface doesn't really do anything"); boolean res = true; try { - String toCheck = ";:<>/*"; + String toCheck = ";:<>/*"; String ueString = oObj.unescapeString(toCheck); res = toCheck.equals(ueString); } catch (com.sun.star.lang.IllegalArgumentException e) { System.out.println("IllegalArgument"); } - tRes.tested("unescapeString()",res); + tRes.tested("unescapeString()",res); } - + } diff --git a/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java b/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java index aed62619f41e..56d7165c3824 100644 --- a/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java +++ b/qadevOOo/tests/java/ifc/util/_XStringSubstitution.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 @@ -31,14 +31,14 @@ import com.sun.star.util.XStringSubstitution; import lib.MultiMethodTest; public class _XStringSubstitution extends MultiMethodTest { - + public XStringSubstitution oObj; - + public void _getSubstituteVariableValue() { boolean res = true; try { log.println("try to get the valid variable $(user) ..."); - String toCheck = "$(user)"; + String toCheck = "$(user)"; String eString = oObj.getSubstituteVariableValue(toCheck); res = eString.startsWith("file:///"); } catch (com.sun.star.container.NoSuchElementException e) { @@ -47,24 +47,24 @@ public class _XStringSubstitution extends MultiMethodTest { } try { log.println("try to get a invalid variable..."); - String toCheck = "$(ThisVariableShouldNoExist)"; + String toCheck = "$(ThisVariableShouldNoExist)"; String eString = oObj.getSubstituteVariableValue(toCheck); log.println("$(ThisVariableShouldNoExist) should not exist"); tRes.tested("getSubstituteVariableValue()",false); - + } catch (com.sun.star.container.NoSuchElementException e) { log.println("expected exception was thrown."); res &= true; } - + tRes.tested("getSubstituteVariableValue()",res); } - + public void _substituteVariables() { boolean res = true; try { log.println("try to get a valid variable..."); - String toCheck = "$(user)"; + String toCheck = "$(user)"; String eString = oObj.substituteVariables(toCheck, false); log.println(eString); res = eString.startsWith("file:///"); @@ -74,28 +74,28 @@ public class _XStringSubstitution extends MultiMethodTest { } try { log.println("try to get a invalid variable..."); - String toCheck = "$(ThisVariableShouldNoExist)"; + String toCheck = "$(ThisVariableShouldNoExist)"; String eString = oObj.substituteVariables(toCheck,true); log.println("$(ThisVariableShouldNoExist) should not exist"); tRes.tested("substituteVariables()",false); - + } catch (com.sun.star.container.NoSuchElementException e) { log.println("expected exception was thrown."); res &= true; } - + tRes.tested("substituteVariables()",res); } public void _reSubstituteVariables() { boolean res = true; log.println("try to get a valid variable..."); - String toCheck = "file:///"; + String toCheck = "file:///"; String eString = oObj.reSubstituteVariables(toCheck); log.println(eString); res = eString.startsWith("file:///"); - + tRes.tested("reSubstituteVariables()",res); } - + } diff --git a/qadevOOo/tests/java/ifc/util/_XTextSearch.java b/qadevOOo/tests/java/ifc/util/_XTextSearch.java index 4f701c087f71..44be16079846 100644 --- a/qadevOOo/tests/java/ifc/util/_XTextSearch.java +++ b/qadevOOo/tests/java/ifc/util/_XTextSearch.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/util/_XURLTransformer.java b/qadevOOo/tests/java/ifc/util/_XURLTransformer.java index e847a9d3132c..548f151c26b7 100644 --- a/qadevOOo/tests/java/ifc/util/_XURLTransformer.java +++ b/qadevOOo/tests/java/ifc/util/_XURLTransformer.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 @@ -436,7 +436,7 @@ public class _XURLTransformer extends MultiMethodTest { } asterix = "<" + asterix.substring(1,asterix.length()); asterix = asterix.substring(0,asterix.length()-1) + ">"; - + presentation = oObj.getPresentation(url, false); String expectedPresentation = "ftp://" + user + ":" + asterix + "@" + server + ":" + port + path + "/" + name; |