From bda85f9563b03bb36c7d72dc1178661b3bf23df0 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Thu, 2 Nov 2017 08:14:14 +0000 Subject: tdf#45904 Move Java _XSheetCellRanges tests to C++ Change-Id: I6f6dcbc5368ce034c25553edf8b88c6669074243 Reviewed-on: https://gerrit.libreoffice.org/44194 Tested-by: Jenkins Reviewed-by: Jens Carl --- qadevOOo/Jar_OOoRunner.mk | 1 - .../com.sun.star.comp.office.ScCellRangesObj.csv | 3 - .../tests/java/ifc/sheet/_XSheetCellRanges.java | 80 ---------------------- 3 files changed, 84 deletions(-) delete mode 100644 qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges.java (limited to 'qadevOOo') 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 com.sun.star.sheet.XSheetCellRanges -* interface methods : -*
    -*
  • getCells()
  • -*
  • getRangeAddressesAsString()
  • -*
  • getRangeAddresses()
  • -*

-* @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.

- * Has OK status if gained enumeration has elements.

- */ - 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.

- * Has OK status if length of returned array is greater than 2.

- */ - 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.

- * Has OK status if returned string starts from 'Sheet'.

- */ - public void _getRangeAddressesAsString() { - log.println("Testing getRangeAddressesAsString ..."); - String oRanges = oObj.getRangeAddressesAsString(); - tRes.tested("getRangeAddressesAsString()",oRanges.indexOf("C1:D4")>0); - } - -} // finished class _XSheetCellRanges - -- cgit