summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authoranfanite396 <dipamt1729@gmail.com>2023-08-24 15:07:11 +0530
committerTomaž Vajngerl <quikee@gmail.com>2023-08-25 08:30:11 +0200
commitb0652124dc92d5f62cef19f63a98aa8b68f5a850 (patch)
tree6caf47afcdf74b0ae42e47e8cf84a0f047e45c78 /qadevOOo
parent30b7721f59d9ccfce7e2b40916309adff8ad851c (diff)
tdf#45904: Remove old SwXParagraphEnumeration Java test
Change-Id: Ia8b639e016971e389d24d4468492af902d1dc35b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156042 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/Jar_OOoRunner.mk1
-rw-r--r--qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXParagraphEnumeration.csv2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java141
3 files changed, 0 insertions, 144 deletions
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk
index 3a9d0503cba8..950cdbf57fd4 100644
--- a/qadevOOo/Jar_OOoRunner.mk
+++ b/qadevOOo/Jar_OOoRunner.mk
@@ -1109,7 +1109,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
qadevOOo/tests/java/mod/_sw/SwXModule \
qadevOOo/tests/java/mod/_sw/SwXNumberingRules \
qadevOOo/tests/java/mod/_sw/SwXParagraph \
- qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration \
qadevOOo/tests/java/mod/_sw/SwXPrintSettings \
qadevOOo/tests/java/mod/_sw/SwXPropertySet \
qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo \
diff --git a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXParagraphEnumeration.csv b/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXParagraphEnumeration.csv
deleted file mode 100644
index 9462032b1fed..000000000000
--- a/qadevOOo/objdsc/sw/com.sun.star.comp.office.SwXParagraphEnumeration.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"SwXParagraphEnumeration";"com::sun::star::container::XEnumeration";"hasMoreElements()"
-"SwXParagraphEnumeration";"com::sun::star::container::XEnumeration";"nextElement()"
diff --git a/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java
deleted file mode 100644
index 3e17bfce35fe..000000000000
--- a/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java
+++ /dev/null
@@ -1,141 +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.XEnumeration;
-import com.sun.star.container.XEnumerationAccess;
-import com.sun.star.text.ControlCharacter;
-import com.sun.star.text.XText;
-import com.sun.star.text.XTextCursor;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-/**
- * Test for object which is represented by service
- * <code>com.sun.star.text.ParagraphEnumeration</code>. <p>
- * Object implements the following interfaces :
- * <ul>
- * <li> <code>com::sun::star::container::XEnumeration</code></li>
- * </ul> <p>
- * This object test <b> is NOT </b> designed to be run in several
- * threads concurrently.
- * @see com.sun.star.container.XEnumeration
- * @see ifc.container._XEnumeration
- */
-public class SwXParagraphEnumeration extends TestCase {
- XTextDocument xTextDoc = null;
-
- /**
- * 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. After major
- * text is gotten from a text document, three paragraphs (each of them
- * filled by 5 strings) are inserted to major text. Finally, paragraph
- * enumeration is created using <code>XEnumeration</code> interface.
- * Object relations created :
- * <ul>
- * <li> <code>'ENUM'</code> for
- * {@link ifc.container._XEnumeration} : major text of text document
- * with several paragraphs inserted, queried to
- * <code>XEnumerationAccess</code> interface.</li>
- * </ul>
- */
- @Override
- public TestEnvironment createTestEnvironment(
- TestParameters tParam, PrintWriter log ) throws StatusException {
- XInterface oObj = null;
-
- log.println( "creating a test environment" );
- XText oText = xTextDoc.getText();
- XTextCursor oCursor = oText.createTextCursor();
-
- for (int i=0; i<3; i++) {
- try {
- oText.insertString( oCursor, "Paragraph Number: " + i, false);
- oText.insertControlCharacter( oCursor,
- ControlCharacter.LINE_BREAK, false );
- } catch ( com.sun.star.lang.IllegalArgumentException e ){
- log.println( "EXCEPTION: " + e);
- }
-
- for (int j=0; j<5; j++){
- try {
- oText.insertString( oCursor,"The quick brown fox jumps"+
- " over the lazy Dog: SwXParagraph", false);
- oText.insertControlCharacter( oCursor,
- ControlCharacter.LINE_BREAK, false );
- oText.insertString( oCursor, "THE QUICK BROWN FOX JUMPS"+
- " OVER THE LAZY DOG: SwXParagraph", false);
- oText.insertControlCharacter( oCursor,
- ControlCharacter.LINE_BREAK, false );
- } catch ( com.sun.star.lang.IllegalArgumentException e ){
- log.println( "EXCEPTION: " + e);
- }
- }
-
- try {
- oText.insertControlCharacter( oCursor,
- ControlCharacter.PARAGRAPH_BREAK, false );
- } catch ( com.sun.star.lang.IllegalArgumentException e ){
- log.println( "EXCEPTION: " + e);
- }
- }
-
- // Enumeration
- XEnumerationAccess oEnumA = UnoRuntime.queryInterface( XEnumerationAccess.class, oText );
- XEnumeration oEnum = oEnumA.createEnumeration();
-
- oObj = oEnum;
-
- log.println("creating a new environment for ParagraphEnumeration object");
- TestEnvironment tEnv = new TestEnvironment( oObj );
-
- tEnv.addObjRelation("ENUM", oEnumA);
-
- return tEnv;
- } // finish method getTestEnvironment
-
-} // finish class SwXParagraphEnumeration
-