This is an automated email from the ASF dual-hosted git repository. damjan pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 66ceb4cf46a7a3af2cfa9b8a28e66999f07a70e8 Author: Damjan Jovanovic <[email protected]> AuthorDate: Fri May 9 18:45:24 2025 +0200 Delete the i18n mod in qadevOOo. Patch by: me --- .../src/main/java/mod/_i18n/BreakIterator.java | 118 --------------------- .../src/main/java/mod/_i18n/CalendarImpl.java | 75 ------------- .../src/main/java/mod/_i18n/ChapterCollator.java | 79 -------------- .../java/mod/_i18n/CharacterClassification.java | 82 -------------- .../src/main/java/mod/_i18n/Collator.java | 76 ------------- .../main/java/mod/_i18n/IndexEntrySupplier.java | 81 -------------- .../src/main/java/mod/_i18n/LocaleData.java | 80 -------------- .../java/mod/_i18n/NumberFormatCodeMapper.java | 86 --------------- .../src/main/java/mod/_i18n/TextSearch.java | 76 ------------- .../src/main/java/mod/_i18n/Transliteration.java | 76 ------------- 10 files changed, 829 deletions(-) diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/BreakIterator.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/BreakIterator.java deleted file mode 100644 index b669ca3478..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/BreakIterator.java +++ /dev/null @@ -1,118 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; -import util.SOfficeFactory; -import util.utils; - -import com.sun.star.lang.Locale; -import com.sun.star.lang.XComponent; -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.text.XTextDocument; -import com.sun.star.text.XTextRange; -import com.sun.star.uno.UnoRuntime; -import com.sun.star.uno.XInterface; - -/** -* Test for object which is represented by service -* <code>com.sun.star.i18n.BreakIterator</code>. <p> -* Object implements the following interfaces : -* <ul> -* <li> <code>com::sun::star::i18n::XBreakIterator</code></li> -* </ul> -* This object test <b> is NOT </b> designed to be run in several -* threads concurrently. -* @see ifc.i18n._XBreakIterator -*/ -public class BreakIterator extends TestCase { - - XComponent xTextDoc; - - /** - * Loads a Text document with name 'Iterator.sxw' from test - * documents directory - */ - protected void initialize( TestParameters tParam, PrintWriter log ) { - - SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() ); - - try { - log.println( "creating a drawdoc" ); - xTextDoc = SOF.loadDocument(utils.getFullTestURL("Iterator.sxw")); - } catch ( com.sun.star.uno.Exception e ) { - // Some exception occurred. FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't load document", e ); - } - } - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.i18n.BreakIterator</code>. - */ - public TestEnvironment createTestEnvironment( TestParameters Param, - PrintWriter log ) - throws StatusException { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance( "com.sun.star.i18n.BreakIterator" ); - } - catch( com.sun.star.uno.Exception e ) { - log.println("Can't create an object." ); - throw new StatusException( "Can't create an object", e ); - } - - oObj = (XInterface) oInterface; - - TestEnvironment tEnv = new TestEnvironment( oObj ); - - tEnv.addObjRelation("Locale", new Locale("en", "US", "")); - - XTextDocument xDoc = (XTextDocument)UnoRuntime.queryInterface - (XTextDocument.class, xTextDoc); - XTextRange xTextRange = (XTextRange)xDoc.getText(); - tEnv.addObjRelation("UnicodeString", xTextRange.getString()); - - return tEnv; - } // finish method getTestEnvironment - - /** - * Disposes the Text document loaded before. - */ - protected void cleanup( TestParameters tParam, PrintWriter log ) { - log.println( " disposing xTextDoc " ); - xTextDoc.dispose(); - } - -} // finish class BreakIterator diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/CalendarImpl.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/CalendarImpl.java deleted file mode 100644 index 82c37e6930..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/CalendarImpl.java +++ /dev/null @@ -1,75 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; - -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.uno.XInterface; - -/** -* Test for object which is represented by service -* <code>com.sun.star.i18n.Calendar</code>. <p> -* Object implements the following interfaces : -* <ul> -* <li> <code>com::sun::star::i18n::Calendar</code></li> -* </ul> -* @see ifc.i18n._XCalendar -*/ -public class CalendarImpl extends TestCase { - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.i18n.Calendar</code>. - */ - protected TestEnvironment createTestEnvironment - (TestParameters Param, PrintWriter log) { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance - ( "com.sun.star.i18n.LocaleCalendar" ); - } - catch( com.sun.star.uno.Exception e ) { - log.println("Can't create an object." ); - throw new StatusException( "Can't create an object", e ); - } - - oObj = (XInterface) oInterface; - - TestEnvironment tEnv = new TestEnvironment( oObj ); - - return tEnv; - - } // finish method getTestEnvironment - -} diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/ChapterCollator.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/ChapterCollator.java deleted file mode 100644 index 18f97b853d..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/ChapterCollator.java +++ /dev/null @@ -1,79 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; - -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.uno.XInterface; - -/** -* Test for object which is represented by service -* <code>com.sun.star.i18n.ChapterCollator</code>. <p> -* Object implements the following interfaces : -* <ul> -* <li> <code>com::sun::star::i18n::XCollator</code></li> -* <li> <code>com::sun::star::lang::XServiceInfo</code></li> -* </ul> -* This object test <b> is NOT </b> designed to be run in several -* threads concurrently. -* @see ifc.i18n._XCollator -* @see ifc.lang._XServiceInfo -*/ -public class ChapterCollator extends TestCase { - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.i18n.ChapterCollator</code>. - */ - public TestEnvironment createTestEnvironment( TestParameters Param, - PrintWriter log ) - throws StatusException { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance - ( "com.sun.star.i18n.ChapterCollator" ); - } - catch( com.sun.star.uno.Exception e ) { - log.println("Can't create an object." ); - throw new StatusException( "Can't create an object", e ); - } - - oObj = (XInterface) oInterface; - - TestEnvironment tEnv = new TestEnvironment( oObj ); - - return tEnv; - } // finish method getTestEnvironment - -} diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/CharacterClassification.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/CharacterClassification.java deleted file mode 100644 index f8285dcf6b..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/CharacterClassification.java +++ /dev/null @@ -1,82 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; - -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.uno.XInterface; - -/** - * Test for object which is represented by service - * <code>com.sun.star.i18n.CharacterClassification</code>. <p> - * - * Object implements the following interfaces : - * <ul> - * <li> <code>com::sun::star::i18n::XCharacterClassification</code></li> - * </ul> <p> - * - * This object test <b> is NOT </b> designed to be run in several - * threads concurrently. - * - * @see com.sun.star.i18n.XCharacterClassification - * @see ifc.i18n._XCharacterClassification - */ -public class CharacterClassification extends TestCase { - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.i18n.CharacterClassification</code>. - */ - public TestEnvironment createTestEnvironment( TestParameters Param, - PrintWriter log ) - throws StatusException { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance - ( "com.sun.star.i18n.CharacterClassification" ); - } catch( com.sun.star.uno.Exception e ) { - log.println("CharacterClassification Service not available" ); - throw new StatusException - ( "CharacterClassification Service not available", e ); - } - - oObj = (XInterface) oInterface; - - log.println( " creating a new environment for CharacterClassification object" ); - TestEnvironment tEnv = new TestEnvironment( oObj ); - - return tEnv; - } // finish method getTestEnvironment - -} // finish class CharacterClassification diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/Collator.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/Collator.java deleted file mode 100644 index 5160853977..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/Collator.java +++ /dev/null @@ -1,76 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; - -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.uno.XInterface; - -/** -* Test for object which is represented by service -* <code>com.sun.star.i18n.Collator</code>. <p> -* Object implements the following interfaces : -* <ul> -* <li> <code>com::sun::star::i18n::XCollator</code></li> -* </ul> -* This object test <b> is NOT </b> designed to be run in several -* threads concurrently. -* @see ifc.i18n._XCollator -*/ -public class Collator extends TestCase { - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.i18n.Collator</code>. - */ - public TestEnvironment createTestEnvironment( TestParameters Param, - PrintWriter log ) - throws StatusException { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance( "com.sun.star.i18n.Collator" ); - } - catch( com.sun.star.uno.Exception e ) { - log.println("Can't create an object." ); - throw new StatusException( "Can't create an object", e ); - } - - oObj = (XInterface) oInterface; - - TestEnvironment tEnv = new TestEnvironment( oObj ); - - return tEnv; - } // finish method getTestEnvironment - -} diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/IndexEntrySupplier.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/IndexEntrySupplier.java deleted file mode 100644 index dddd262e79..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/IndexEntrySupplier.java +++ /dev/null @@ -1,81 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; - -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.uno.XInterface; - -/** - * Test for object which is represented by service - * <code>com.sun.star.i18n.IndexEntrySupplier</code>. <p> - * - * Object implements the following interfaces : - * <ul> - * <li> <code>com::sun::star::i18n::XIndexEntrySupplier</code></li> - * </ul> <p> - * - * This object test <b> is NOT </b> designed to be run in several - * threads concurrently. - * - * @see com.sun.star.i18n.XIndexEntrySupplier - * @see ifc.i18n._XIndexEntrySupplier - */ -public class IndexEntrySupplier extends TestCase { - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.i18n.IndexEntrySupplier</code>. - */ - public TestEnvironment createTestEnvironment( TestParameters Param, - PrintWriter log ) - throws StatusException { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance - ( "com.sun.star.i18n.IndexEntrySupplier" ); - } - catch( com.sun.star.uno.Exception e ) { - log.println("Can't create an object." ); - throw new StatusException( "Can't create an object", e ); - } - - oObj = (XInterface) oInterface; - - TestEnvironment tEnv = new TestEnvironment( oObj ); - - return tEnv; - } // finish method getTestEnvironment - -} diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/LocaleData.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/LocaleData.java deleted file mode 100644 index dfd61bd72b..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/LocaleData.java +++ /dev/null @@ -1,80 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; - -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.uno.XInterface; - -/** - * Test for object which is represented by service - * <code>com.sun.star.i18n.LocaleData</code>. <p> - * - * Object implements the following interfaces : - * <ul> - * <li> <code>com::sun::star::i18n::XLocaleData</code></li> - * </ul> <p> - * - * This object test <b> is NOT </b> designed to be run in several - * threads concurrently. - * - * @see com.sun.star.i18n.XLocaleData - * @see ifc.i18n._XLocaleData - */ -public class LocaleData extends TestCase { - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.i18n.LocaleData</code>. - */ - public TestEnvironment createTestEnvironment( TestParameters Param, - PrintWriter log ) - throws StatusException { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance( "com.sun.star.i18n.LocaleData" ); - } catch( com.sun.star.uno.Exception e ) { - log.println("LocaleData Service not available" ); - throw new StatusException( "LocaleData Service not available", e ); - } - - oObj = (XInterface) oInterface; - - log.println( " creating a new environment for LocaleData object" ); - TestEnvironment tEnv = new TestEnvironment( oObj ); - - return tEnv; - } // finish method getTestEnvironment - -} // finish class LocaleData diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/NumberFormatCodeMapper.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/NumberFormatCodeMapper.java deleted file mode 100644 index 850a718cfa..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/NumberFormatCodeMapper.java +++ /dev/null @@ -1,86 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; - -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.uno.XInterface; - -/** - * Test for object which is represented by service - * <code>com.sun.star.i18n.NumberFormatCodeMapper</code>. <p> - * - * Object implements the following interfaces : - * <ul> - * <li> <code>com::sun::star::lang::XServiceInfo</code></li> - * <li> <code>com::sun::star::i18n::XNumberFormatCode</code></li> - * </ul> <p> - * - * This object test <b> is NOT </b> designed to be run in several - * threads concurrently. - * - * @see com.sun.star.lang.XServiceInfo - * @see com.sun.star.i18n.XNumberFormatCode - * @see ifc.lang._XServiceInfo - * @see ifc.i18n._XNumberFormatCode - */ -public class NumberFormatCodeMapper extends TestCase { - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.i18n.NumberFormatCodeMapper</code>. - */ - public TestEnvironment createTestEnvironment( TestParameters Param, - PrintWriter log ) - throws StatusException { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance - ( "com.sun.star.i18n.NumberFormatCodeMapper" ); - } - catch( com.sun.star.uno.Exception e ) { - log.println("NumberFormatCodeMapper Service not available" ); - throw new StatusException - ( "NumberFormatCodeMapper Service not available", e ); - } - - oObj = (XInterface) oInterface; - - log.println( " creating a new environment for NumberFormatCodeMapper object" ); - TestEnvironment tEnv = new TestEnvironment( oObj ); - - return tEnv; - } // finish method getTestEnvironment - -} // finish class NumberFormatCodeMapper diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/TextSearch.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/TextSearch.java deleted file mode 100644 index 1d7e35083b..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/TextSearch.java +++ /dev/null @@ -1,76 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; - -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.uno.XInterface; - -/** -* Test for object which is represented by service -* <code>com.sun.star.util.TextSearch</code>. <p> -* Object implements the following interfaces : -* <ul> -* <li> <code>com::sun::star::util::XTextSearch</code></li> -* </ul> -* This object test <b> is NOT </b> designed to be run in several -* threads concurrently. -* @see ifc.util._XTextSearch -*/ -public class TextSearch extends TestCase { - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.util.TextSearch</code>. - */ - public TestEnvironment createTestEnvironment( TestParameters Param, - PrintWriter log ) - throws StatusException { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance( "com.sun.star.util.TextSearch" ); - } - catch( com.sun.star.uno.Exception e ) { - log.println("Can't create an object." ); - throw new StatusException( "Can't create an object", e ); - } - - oObj = (XInterface) oInterface; - - TestEnvironment tEnv = new TestEnvironment( oObj ); - - return tEnv; - } // finish method getTestEnvironment - -} diff --git a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/Transliteration.java b/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/Transliteration.java deleted file mode 100644 index 2ef4971f1f..0000000000 --- a/main/qadevOOo/java/OOoRunner/src/main/java/mod/_i18n/Transliteration.java +++ /dev/null @@ -1,76 +0,0 @@ -/************************************************************** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - *************************************************************/ - - - -package mod._i18n; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; - -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.uno.XInterface; - -/** -* Test for object which is represented by service -* <code>com.sun.star.i18n.Transliteration</code>. <p> -* Object implements the following interfaces : -* <ul> -* <li> <code>com::sun::star::i18n::XTransliteration</code></li> -* </ul> -* This object test <b> is NOT </b> designed to be run in several -* threads concurrently. -* @see ifc.i18n._XTransliteration -*/ -public class Transliteration extends TestCase { - - /** - * Creating a Testenvironment for the interfaces to be tested. - * Creates an instance of the service - * <code>com.sun.star.i18n.Transliteration</code>. - */ - public TestEnvironment createTestEnvironment( TestParameters Param, - PrintWriter log ) - throws StatusException { - XInterface oObj = null; - Object oInterface = null; - - try { - XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance( "com.sun.star.i18n.Transliteration" ); - } - catch( com.sun.star.uno.Exception e ) { - log.println("Can't create an object." ); - throw new StatusException( "Can't create an object", e ); - } - - oObj = (XInterface) oInterface; - - TestEnvironment tEnv = new TestEnvironment( oObj ); - - return tEnv; - } // finish method getTestEnvironment - -}
