diff options
author | Jens Carl <j.carl43@gmx.de> | 2017-12-08 03:36:00 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2017-12-08 06:29:45 +0100 |
commit | 7345bef0f354673e2fd3127b8fc707eae4c936ed (patch) | |
tree | 31b75de3fef9b5195998757c83f50ed65a79b696 /qadevOOo | |
parent | 87d636a14be35468ecef7b6f95c6754d24bb6e94 (diff) |
tdf#45904 Move _XDataPilotField Java test to C++
Change-Id: I5ba1733a8e675048366651aa5f3affc9c249622c
Reviewed-on: https://gerrit.libreoffice.org/46066
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.ScDataPilotFieldObj.csv | 1 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/sheet/_XDataPilotField.java | 61 |
3 files changed, 0 insertions, 63 deletions
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk index 539a24e803e4..bf717ebb1f37 100644 --- a/qadevOOo/Jar_OOoRunner.mk +++ b/qadevOOo/Jar_OOoRunner.mk @@ -596,7 +596,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\ qadevOOo/tests/java/ifc/sheet/_XConsolidatable \ qadevOOo/tests/java/ifc/sheet/_XConsolidationDescriptor \ qadevOOo/tests/java/ifc/sheet/_XDatabaseRanges \ - qadevOOo/tests/java/ifc/sheet/_XDataPilotField \ qadevOOo/tests/java/ifc/sheet/_XDDELink \ qadevOOo/tests/java/ifc/sheet/_XDocumentAuditing \ qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster \ diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv index c5efdd130e60..de2cb74f71ba 100644 --- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv +++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldObj.csv @@ -7,4 +7,3 @@ "ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()" "ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()" "ScDataPilotFieldObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()" -"ScDataPilotFieldObj";"com::sun::star::sheet::XDataPilotField#optional";"getItems()" diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotField.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotField.java deleted file mode 100644 index 54ed131a5c52..000000000000 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotField.java +++ /dev/null @@ -1,61 +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 com.sun.star.container.XIndexAccess; -import com.sun.star.sheet.XDataPilotField; - -import lib.MultiMethodTest; - - -public class _XDataPilotField extends MultiMethodTest { - public XDataPilotField oObj = null; - - public void _getItems() { - XIndexAccess xIA = oObj.getItems(); - tRes.tested("getItems()", checkIndexAccess(xIA)); - } - - /** - * calls the method getCount at the IndexAccess, returns true is it is >0 - * and getByIndex() doesn't throw an exception for Indexes between 0 and count - */ - protected boolean checkIndexAccess(XIndexAccess xIA) { - boolean res = true; - int count = xIA.getCount(); - log.println("Found " + count + " Elements"); - res &= (count > 0); - - for (int k = 0; k < count; k++) { - try { - Object element = xIA.getByIndex(k); - log.println("Element " + k + " = " + element); - } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - log.println("Unexpected Exception while getting by Index (" + k + - ")" + e.getMessage()); - res &= false; - } catch (com.sun.star.lang.WrappedTargetException e) { - log.println("Unexpected Exception while getting by Index (" + k + - ")" + e.getMessage()); - res &= false; - } - } - - return res; - } -}
\ No newline at end of file |