diff options
author | anfanite396 <dipamt1729@gmail.com> | 2023-08-24 15:32:36 +0530 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-08-25 08:29:06 +0200 |
commit | 1dca3e5839089608b640a1b9f69d1c8521d4b10e (patch) | |
tree | 7eecb8fbc06b7f8f9e2e0aa9918f20b48972c923 /qadevOOo | |
parent | 4453918e67a137440432381ef3bb2d03841e55d5 (diff) |
tdf#45904: Remove old SwXStyleFamilies Java test
Change-Id: I3057e4a2fcf1b057d35050bfeb7c22fbad19325b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156045
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/Jar_OOoRunner.mk | 1 | ||||
-rw-r--r-- | qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXStyleFamilies.csv | 7 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java | 97 |
3 files changed, 0 insertions, 105 deletions
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk index de423c3bc624..37c36f18c0f1 100644 --- a/qadevOOo/Jar_OOoRunner.mk +++ b/qadevOOo/Jar_OOoRunner.mk @@ -1119,7 +1119,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\ qadevOOo/tests/java/mod/_sw/SwXReferenceMarks \ qadevOOo/tests/java/mod/_sw/SwXShape \ qadevOOo/tests/java/mod/_sw/SwXStyle \ - qadevOOo/tests/java/mod/_sw/SwXStyleFamilies \ qadevOOo/tests/java/mod/_sw/SwXStyleFamily \ qadevOOo/tests/java/mod/_sw/SwXTableCellText \ qadevOOo/tests/java/mod/_sw/SwXTableColumns \ diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXStyleFamilies.csv b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXStyleFamilies.csv deleted file mode 100644 index f2f3e1303856..000000000000 --- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXStyleFamilies.csv +++ /dev/null @@ -1,7 +0,0 @@ -"SwXStyleFamilies";"com::sun::star::container::XNameAccess";"getByName()" -"SwXStyleFamilies";"com::sun::star::container::XNameAccess";"getElementNames()" -"SwXStyleFamilies";"com::sun::star::container::XNameAccess";"hasByName()" -"SwXStyleFamilies";"com::sun::star::container::XIndexAccess#optional";"getCount()" -"SwXStyleFamilies";"com::sun::star::container::XIndexAccess#optional";"getByIndex()" -"SwXStyleFamilies";"com::sun::star::container::XElementAccess";"getElementType()" -"SwXStyleFamilies";"com::sun::star::container::XElementAccess";"hasElements()" diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java deleted file mode 100644 index ebbc4690aa69..000000000000 --- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * 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 . - */ - -package mod._sw; - -import java.io.PrintWriter; - -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; -import util.SOfficeFactory; - -import com.sun.star.container.XNameAccess; -import com.sun.star.style.XStyleFamiliesSupplier; -import com.sun.star.text.XTextDocument; -import com.sun.star.uno.UnoRuntime; - - -/** - * Test for object which is represented by service - * <code>com.sun.star.style.StyleFamilies</code>. <p> - * Object implements the following interfaces : - * <ul> - * <li> <code>com::sun::star::container::XNameAccess</code></li> - * <li> <code>com::sun::star::container::XElementAccess</code></li> - * <li> <code>com::sun::star::container::XIndexAccess</code></li> - * </ul> <p> - * This object test <b> is NOT </b> designed to be run in several - * threads concurrently. - * @see com.sun.star.container.XNameAccess - * @see com.sun.star.container.XElementAccess - * @see com.sun.star.container.XIndexAccess - * @see com.sun.star.style.StyleFamilies - * @see ifc.container._XNameAccess - * @see ifc.container._XElementAccess - * @see ifc.container._XIndexAccess - */ -public class SwXStyleFamilies extends TestCase { - XTextDocument xTextDoc; - - /** - * Creates text document. - */ - @Override - protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } - - /** - * Disposes text document. - */ - @Override - protected void cleanup( TestParameters tParam, PrintWriter log ) { - log.println( " disposing xTextDoc " ); - util.DesktopTools.closeDoc(xTextDoc); - } - - /** - * Creating a TestEnvironment for the interfaces to be tested. Style families - * are gotten from text document using <code>XStyleFamiliesSupplier</code> - * interface and returned as a test component. - */ - @Override - public TestEnvironment createTestEnvironment( - TestParameters Param, PrintWriter log ) throws StatusException { - - - log.println( "Creating a test environment" ); - XTextDocument xArea = UnoRuntime.queryInterface(XTextDocument.class, xTextDoc); - XStyleFamiliesSupplier oSFS = UnoRuntime.queryInterface(XStyleFamiliesSupplier.class, xArea); - XNameAccess oSF = oSFS.getStyleFamilies(); - - TestEnvironment tEnv = new TestEnvironment(oSF); - return tEnv; - } - - -} // finish class SwXStyle - |