diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-03-09 07:32:31 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-03-09 18:30:31 +0100 |
commit | b8563d46a03567df0780216173b10156e158b64e (patch) | |
tree | 3314e9a6bd8aa81c634f2b2772b89f201a98413b /qadevOOo | |
parent | 7a644e363a8c2156b7e1202c0a2ff518ec11b027 (diff) |
tdf#45904 Move _SheetLink Java tests to C++
Change-Id: I33813be65bcb44c11a35bc97d963057418a28d9e
Reviewed-on: https://gerrit.libreoffice.org/50984
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.ScSheetLinkObj.csv | 3 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/sheet/_SheetLink.java | 77 |
3 files changed, 0 insertions, 81 deletions
diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk index d57a9e7543fb..4c4b28b8fd7a 100644 --- a/qadevOOo/Jar_OOoRunner.mk +++ b/qadevOOo/Jar_OOoRunner.mk @@ -564,7 +564,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\ qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer \ qadevOOo/tests/java/ifc/sdb/_XSQLErrorBroadcaster \ qadevOOo/tests/java/ifc/sheet/_FunctionDescription \ - qadevOOo/tests/java/ifc/sheet/_SheetLink \ qadevOOo/tests/java/ifc/sheet/_SheetSortDescriptor \ qadevOOo/tests/java/ifc/sheet/_Spreadsheet \ qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocument \ diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinkObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinkObj.csv index 9caf4204d036..fb11276d69cb 100644 --- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinkObj.csv +++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinkObj.csv @@ -1,9 +1,6 @@ "ScSheetLinkObj";"com::sun::star::util::XRefreshable";"refresh()" "ScSheetLinkObj";"com::sun::star::util::XRefreshable";"addRefreshListener()" "ScSheetLinkObj";"com::sun::star::util::XRefreshable";"removeRefreshListener()" -"ScSheetLinkObj";"com::sun::star::sheet::SheetLink";"Url" -"ScSheetLinkObj";"com::sun::star::sheet::SheetLink";"Filter" -"ScSheetLinkObj";"com::sun::star::sheet::SheetLink";"FilterOptions" "ScSheetLinkObj";"com::sun::star::container::XNamed";"getName()" "ScSheetLinkObj";"com::sun::star::container::XNamed";"setName()" "ScSheetLinkObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()" diff --git a/qadevOOo/tests/java/ifc/sheet/_SheetLink.java b/qadevOOo/tests/java/ifc/sheet/_SheetLink.java deleted file mode 100644 index 503d13a72864..000000000000 --- a/qadevOOo/tests/java/ifc/sheet/_SheetLink.java +++ /dev/null @@ -1,77 +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.MultiPropertyTest; -import util.ValueChanger; - -/** -* Testing <code>com.sun.star.sheet.SheetLink</code> -* service properties : -* <ul> -* <li><code> Url</code></li> -* <li><code> Filter</code></li> -* <li><code> FilterOptions</code></li> -* </ul> <p> -* Properties testing is automated by <code>lib.MultiPropertyTest</code>. -* @see com.sun.star.sheet.SheetLink -*/ -public class _SheetLink extends MultiPropertyTest { - - /** - *This class is destined to custom test of property <code>Url</code>. - */ - protected PropertyTester UrlTester = new PropertyTester() { - @Override - protected Object getNewValue(String propName, Object oldValue) { - String newValue = (String) ValueChanger.changePValue(oldValue); - if ( !newValue.startsWith("file://") ) { - newValue = "file://" + newValue; - } - - return newValue; - } - }; - - /** - * Test property <code>Url</code> using custom <code>PropertyTest</code>. - */ - public void _Url() { - testProperty("Url", UrlTester); - } - - /** - *This class is destined to custom test of property <code>Filter</code>. - */ - protected PropertyTester FilterTester = new PropertyTester() { - @Override - protected Object getNewValue(String propName, Object oldValue) { - return "StarCalc 4.0"; - } - }; - - /** - * Test property <code>Filter</code> using custom <code>PropertyTest</code>. - */ - public void _Filter() { - testProperty("Filter", FilterTester); - } -} - - |