diff options
author | Jens Carl <j.carl43@gmx.de> | 2017-11-02 08:14:14 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2017-11-03 04:10:14 +0100 |
commit | bda85f9563b03bb36c7d72dc1178661b3bf23df0 (patch) | |
tree | 4b5a926bcccfc276e88eec808af5064c78b794fe /qadevOOo | |
parent | 44e9640748791f602edb22cbc499200283466e1e (diff) |
tdf#45904 Move Java _XSheetCellRanges tests to C++
Change-Id: I6f6dcbc5368ce034c25553edf8b88c6669074243
Reviewed-on: https://gerrit.libreoffice.org/44194
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/Jar_OOoRunner.mk | 1 | ||||
-rw-r--r-- | qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangesObj.csv | 3 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges.java | 80 |
3 files changed, 0 insertions, 84 deletions
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk index aa1ca80f0733..94b198cf34d2 100644 --- a/qadevOOo/Jar_OOoRunner.mk +++ b/qadevOOo/Jar_OOoRunner.mk @@ -620,7 +620,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\ qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor \ qadevOOo/tests/java/ifc/sheet/_XSheetCellRange \ qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer \ - qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges \ qadevOOo/tests/java/ifc/sheet/_XSheetFilterableEx \ qadevOOo/tests/java/ifc/sheet/_XSpreadsheetView \ qadevOOo/tests/java/ifc/style/_CharacterProperties \ diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangesObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangesObj.csv index 927dfc3ce333..a17fa72c561f 100644 --- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangesObj.csv +++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangesObj.csv @@ -45,9 +45,6 @@ "ScCellRangesObj";"com::sun::star::style::CharacterPropertiesAsian";"ParaIsHangingPunctuation" "ScCellRangesObj";"com::sun::star::container::XIndexAccess";"getCount()" "ScCellRangesObj";"com::sun::star::container::XIndexAccess";"getByIndex()" -"ScCellRangesObj";"com::sun::star::sheet::XSheetCellRanges";"getCells()" -"ScCellRangesObj";"com::sun::star::sheet::XSheetCellRanges";"getRangeAddressesAsString()" -"ScCellRangesObj";"com::sun::star::sheet::XSheetCellRanges";"getRangeAddresses()" "ScCellRangesObj";"com::sun::star::util::XReplaceable";"createReplaceDescriptor()" "ScCellRangesObj";"com::sun::star::util::XReplaceable";"replaceAll()" "ScCellRangesObj";"com::sun::star::chart::XChartData";"addChartDataChangeEventListener()" diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges.java b/qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges.java deleted file mode 100644 index c5db09ece2ee..000000000000 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges.java +++ /dev/null @@ -1,80 +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 ifc.sheet; - -import lib.MultiMethodTest; - -import com.sun.star.container.XEnumeration; -import com.sun.star.sheet.XSheetCellRanges; -import com.sun.star.table.CellRangeAddress; - -/** -* Testing <code>com.sun.star.sheet.XSheetCellRanges</code> -* interface methods : -* <ul> -* <li><code> getCells()</code></li> -* <li><code> getRangeAddressesAsString()</code></li> -* <li><code> getRangeAddresses()</code></li> -* </ul> <p> -* @see com.sun.star.sheet.XSheetCellRanges -*/ -public class _XSheetCellRanges extends MultiMethodTest{ - - public XSheetCellRanges oObj = null; - - /** - * Test calls the method, creates enumeration of returned value - * and checks that the enumeration has elements. <p> - * Has <b> OK </b> status if gained enumeration has elements. <p> - */ - public void _getCells() { - log.println("Testing getCells ..."); - - XEnumeration oEnum = oObj.getCells().createEnumeration(); - boolean res = oEnum.hasMoreElements(); - if (!res) { - log.println( - "The Enumeration gained via getCells() has no Elements"); - } - tRes.tested("getCells()", res); - } - - /** - * Test calls the method and checks length of returned array. <p> - * Has <b> OK </b> status if length of returned array is greater than 2.<p> - */ - public void _getRangeAddresses() { - log.println("Testing getRangeAddresses ..."); - CellRangeAddress[] oRanges = oObj.getRangeAddresses(); - int howmuch = oRanges.length; - tRes.tested("getRangeAddresses()", (howmuch > 2) ); - } - - /** - * Test calls the method and checks returned string. <p> - * Has <b> OK </b> status if returned string starts from 'Sheet'.<p> - */ - public void _getRangeAddressesAsString() { - log.println("Testing getRangeAddressesAsString ..."); - String oRanges = oObj.getRangeAddressesAsString(); - tRes.tested("getRangeAddressesAsString()",oRanges.indexOf("C1:D4")>0); - } - -} // finished class _XSheetCellRanges - |