diff options
author | Rahul Gurung <gurungrahul2@gmail.com> | 2018-10-13 00:18:58 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-02 06:29:58 +0100 |
commit | 9329d18235d21a00dbc724ba3251e95fbb675588 (patch) | |
tree | bfbc019405aa3957b609ad05709abd7d448f049e /sc/qa/extras | |
parent | 68af083f9a8e3904aa3c341da5c598212da68f6f (diff) |
tdf#45904 Move _XEnumerationAccess Java Tests to C++
Change-Id: Id0aa9f3587fc6427bdbd938293eb3cc564c52bb1
Reviewed-on: https://gerrit.libreoffice.org/61731
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/qa/extras')
-rw-r--r-- | sc/qa/extras/scannotationsobj.cxx | 7 | ||||
-rw-r--r-- | sc/qa/extras/scarealinksobj.cxx | 7 | ||||
-rw-r--r-- | sc/qa/extras/scautoformatobj.cxx | 9 | ||||
-rw-r--r-- | sc/qa/extras/sccellobj.cxx | 5 | ||||
-rw-r--r-- | sc/qa/extras/sccellrangesobj.cxx | 5 | ||||
-rw-r--r-- | sc/qa/extras/scdatabaserangesobj.cxx | 8 | ||||
-rw-r--r-- | sc/qa/extras/scdatapilottablesobj.cxx | 8 | ||||
-rw-r--r-- | sc/qa/extras/scfunctionlistobj.cxx | 8 | ||||
-rw-r--r-- | sc/qa/extras/sclabelrangesobj.cxx | 8 | ||||
-rw-r--r-- | sc/qa/extras/scscenariosobj.cxx | 8 | ||||
-rw-r--r-- | sc/qa/extras/scsubtotaldescriptorbaseobj.cxx | 10 | ||||
-rw-r--r-- | sc/qa/extras/sctableconditionalformatobj.cxx | 8 | ||||
-rw-r--r-- | sc/qa/extras/sctablesheetsobj.cxx | 9 | ||||
-rw-r--r-- | sc/qa/extras/sctabviewobj.cxx | 5 |
14 files changed, 92 insertions, 13 deletions
diff --git a/sc/qa/extras/scannotationsobj.cxx b/sc/qa/extras/scannotationsobj.cxx index 31f94c3e3196..cf53b8ae3d3d 100644 --- a/sc/qa/extras/scannotationsobj.cxx +++ b/sc/qa/extras/scannotationsobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/xsheetannotations.hxx> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> @@ -20,7 +21,8 @@ using namespace css::uno; namespace sc_apitest { -class ScAnnontationsObj : public CalcUnoApiTest, public apitest::XSheetAnnotations +class ScAnnontationsObj : public CalcUnoApiTest, public apitest::XEnumerationAccess, + public apitest::XSheetAnnotations { public: ScAnnontationsObj(); @@ -33,6 +35,9 @@ public: CPPUNIT_TEST_SUITE(ScAnnontationsObj); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // XSheetAnnotations CPPUNIT_TEST(testInsertNew); CPPUNIT_TEST(testRemoveByIndex); diff --git a/sc/qa/extras/scarealinksobj.cxx b/sc/qa/extras/scarealinksobj.cxx index 352efd65d20b..73a0f2e303dd 100644 --- a/sc/qa/extras/scarealinksobj.cxx +++ b/sc/qa/extras/scarealinksobj.cxx @@ -9,6 +9,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/sheet/xarealinks.hxx> +#include <test/container/xenumerationaccess.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/sheet/XAreaLinks.hpp> @@ -22,7 +23,8 @@ using namespace css::uno; namespace sc_apitest { -class ScAreaLinksObj : public CalcUnoApiTest, public apitest::XAreaLinks +class ScAreaLinksObj : public CalcUnoApiTest, public apitest::XAreaLinks, + public apitest::XEnumerationAccess { public: ScAreaLinksObj(); @@ -37,6 +39,9 @@ public: CPPUNIT_TEST(testInsertAtPosition); CPPUNIT_TEST(testRemoveByIndex); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + CPPUNIT_TEST_SUITE_END(); private: diff --git a/sc/qa/extras/scautoformatobj.cxx b/sc/qa/extras/scautoformatobj.cxx index 851f6dce34ac..518b967335b1 100644 --- a/sc/qa/extras/scautoformatobj.cxx +++ b/sc/qa/extras/scautoformatobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/tableautoformat.hxx> #include <com/sun/star/beans/XPropertySet.hpp> @@ -25,7 +26,10 @@ using namespace com::sun::star; namespace sc_apitest { -class ScAutoFormatObj : public CalcUnoApiTest, public apitest::TableAutoFormat +class ScAutoFormatObj : public CalcUnoApiTest, + public apitest::XEnumerationAccess, + public apitest::TableAutoFormat + { public: ScAutoFormatObj(); @@ -36,6 +40,9 @@ public: CPPUNIT_TEST_SUITE(ScAutoFormatObj); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // TableAutoFormat CPPUNIT_TEST(testTableAutoFormatProperties); diff --git a/sc/qa/extras/sccellobj.cxx b/sc/qa/extras/sccellobj.cxx index 5ade0aef45f3..cb1c5a1421fd 100644 --- a/sc/qa/extras/sccellobj.cxx +++ b/sc/qa/extras/sccellobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/sheetcell.hxx> #include <test/table/xcell.hxx> #include <test/sheet/xcelladdressable.hxx> @@ -35,6 +36,7 @@ class ScCellObj : public CalcUnoApiTest, public apitest::SheetCell, public apitest::XCell, public apitest::XCellAddressable, public apitest::XColumnRowRange, + public apitest::XEnumerationAccess, public apitest::XFormulaQuery, public apitest::XIndent, public apitest::XSheetAnnotationAnchor @@ -65,6 +67,9 @@ public: CPPUNIT_TEST(testGetColumns); CPPUNIT_TEST(testGetRows); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // XFormulaQuery CPPUNIT_TEST(testQueryDependents); CPPUNIT_TEST(testQueryPrecedents); diff --git a/sc/qa/extras/sccellrangesobj.cxx b/sc/qa/extras/sccellrangesobj.cxx index 01785b538cb9..8d81f5b85071 100644 --- a/sc/qa/extras/sccellrangesobj.cxx +++ b/sc/qa/extras/sccellrangesobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/sheetcellranges.hxx> #include <test/sheet/xformulaquery.hxx> #include <test/sheet/xsheetcellrangecontainer.hxx> @@ -32,6 +33,7 @@ namespace sc_apitest { class ScCellRangesObj : public CalcUnoApiTest, public apitest::SheetCellRanges, + public apitest::XEnumerationAccess, public apitest::XFormulaQuery, public apitest::XIndent, public apitest::XSheetCellRangeContainer, @@ -52,6 +54,9 @@ public: // SheetCellRanges CPPUNIT_TEST(testSheetCellRangesProperties); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // XFormulaQuery CPPUNIT_TEST(testQueryDependents); CPPUNIT_TEST(testQueryPrecedents); diff --git a/sc/qa/extras/scdatabaserangesobj.cxx b/sc/qa/extras/scdatabaserangesobj.cxx index a2f2c42308cf..f37a262b2377 100644 --- a/sc/qa/extras/scdatabaserangesobj.cxx +++ b/sc/qa/extras/scdatabaserangesobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/xdatabaseranges.hxx> #include <com/sun/star/beans/XPropertySet.hpp> @@ -25,7 +26,9 @@ using namespace com::sun::star; namespace sc_apitest { -class ScDatabaseRangesObj : public CalcUnoApiTest, public apitest::XDatabaseRanges +class ScDatabaseRangesObj : public CalcUnoApiTest, + public apitest::XDatabaseRanges, + public apitest::XEnumerationAccess { public: ScDatabaseRangesObj(); @@ -39,6 +42,9 @@ public: // XDatabaseRanges CPPUNIT_TEST(testAddRemoveDbRanges); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + CPPUNIT_TEST_SUITE_END(); private: diff --git a/sc/qa/extras/scdatapilottablesobj.cxx b/sc/qa/extras/scdatapilottablesobj.cxx index 7a86605852e7..eb3eaf884563 100644 --- a/sc/qa/extras/scdatapilottablesobj.cxx +++ b/sc/qa/extras/scdatapilottablesobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/xdatapilottables.hxx> #include <com/sun/star/container/XIndexAccess.hpp> @@ -30,7 +31,9 @@ using namespace com::sun::star; namespace sc_apitest { -class ScDataPilotTablesObj : public CalcUnoApiTest, public apitest::XDataPilotTables +class ScDataPilotTablesObj : public CalcUnoApiTest, + public apitest::XDataPilotTables, + public apitest::XEnumerationAccess { public: ScDataPilotTablesObj(); @@ -45,6 +48,9 @@ public: // XDataPilotTables CPPUNIT_TEST(testXDataPilotTables); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + CPPUNIT_TEST_SUITE_END(); private: diff --git a/sc/qa/extras/scfunctionlistobj.cxx b/sc/qa/extras/scfunctionlistobj.cxx index 59e4baf2d4c0..ae68e5404b58 100644 --- a/sc/qa/extras/scfunctionlistobj.cxx +++ b/sc/qa/extras/scfunctionlistobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/xfunctiondescriptions.hxx> #include <com/sun/star/lang/XComponent.hpp> @@ -22,7 +23,9 @@ using namespace com::sun::star; namespace sc_apitest { -class ScFunctionListObj : public CalcUnoApiTest, public apitest::XFunctionDescriptions +class ScFunctionListObj : public CalcUnoApiTest, + public apitest::XEnumerationAccess, + public apitest::XFunctionDescriptions { public: ScFunctionListObj(); @@ -33,6 +36,9 @@ public: CPPUNIT_TEST_SUITE(ScFunctionListObj); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // XFunctionDescriptions CPPUNIT_TEST(testGetById); diff --git a/sc/qa/extras/sclabelrangesobj.cxx b/sc/qa/extras/sclabelrangesobj.cxx index 5a654b5ce727..44e05c8ef7a0 100644 --- a/sc/qa/extras/sclabelrangesobj.cxx +++ b/sc/qa/extras/sclabelrangesobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/xlabelranges.hxx> #include <com/sun/star/beans/XPropertySet.hpp> @@ -25,7 +26,9 @@ using namespace com::sun::star; namespace sc_apitest { -class ScLabelRangesObj : public CalcUnoApiTest, public apitest::XLabelRanges +class ScLabelRangesObj : public CalcUnoApiTest, + public apitest::XEnumerationAccess, + public apitest::XLabelRanges { public: ScLabelRangesObj(); @@ -36,6 +39,9 @@ public: CPPUNIT_TEST_SUITE(ScLabelRangesObj); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // XLabelRanges CPPUNIT_TEST(testAddNew); CPPUNIT_TEST(testRemoveByIndex); diff --git a/sc/qa/extras/scscenariosobj.cxx b/sc/qa/extras/scscenariosobj.cxx index ebd8ce82155d..baa263998ecc 100644 --- a/sc/qa/extras/scscenariosobj.cxx +++ b/sc/qa/extras/scscenariosobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/xscenarios.hxx> #include <com/sun/star/container/XIndexAccess.hpp> @@ -32,7 +33,9 @@ using namespace com::sun::star; namespace sc_apitest { -class ScScenariosObj : public CalcUnoApiTest, public apitest::XScenarios +class ScScenariosObj : public CalcUnoApiTest, + public apitest::XEnumerationAccess, + public apitest::XScenarios { public: ScScenariosObj(); @@ -43,6 +46,9 @@ public: CPPUNIT_TEST_SUITE(ScScenariosObj); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // XScenarios CPPUNIT_TEST(testAddNewByName); CPPUNIT_TEST(testRemoveByName); diff --git a/sc/qa/extras/scsubtotaldescriptorbaseobj.cxx b/sc/qa/extras/scsubtotaldescriptorbaseobj.cxx index 62ce0c69564a..25236174837a 100644 --- a/sc/qa/extras/scsubtotaldescriptorbaseobj.cxx +++ b/sc/qa/extras/scsubtotaldescriptorbaseobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/subtotaldescriptor.hxx> #include <test/sheet/xsubtotaldescriptor.hxx> @@ -31,9 +32,9 @@ using namespace com::sun::star; namespace sc_apitest { -class ScSubTotalDescriptorBaseObj : public CalcUnoApiTest, - public apitest::SubTotalDescriptor, - public apitest::XSubTotalDescriptor +class ScSubTotalDescriptorBaseObj : public CalcUnoApiTest,public apitest::XEnumerationAccess, + public apitest::SubTotalDescriptor, + public apitest::XSubTotalDescriptor { public: ScSubTotalDescriptorBaseObj(); @@ -44,6 +45,9 @@ public: CPPUNIT_TEST_SUITE(ScSubTotalDescriptorBaseObj); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // SubTotalDescriptor CPPUNIT_TEST(testSubTotalDescriptorProperties); diff --git a/sc/qa/extras/sctableconditionalformatobj.cxx b/sc/qa/extras/sctableconditionalformatobj.cxx index f245189c9ccd..adb0ae023820 100644 --- a/sc/qa/extras/sctableconditionalformatobj.cxx +++ b/sc/qa/extras/sctableconditionalformatobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/xsheetconditionalentries.hxx> #include <com/sun/star/beans/PropertyValue.hpp> @@ -34,7 +35,9 @@ using namespace com::sun::star; namespace sc_apitest { -class ScTableConditionalFormatObj : public CalcUnoApiTest, public apitest::XSheetConditionalEntries +class ScTableConditionalFormatObj : public CalcUnoApiTest, + public apitest::XEnumerationAccess, + public apitest::XSheetConditionalEntries { public: ScTableConditionalFormatObj(); @@ -46,6 +49,9 @@ public: CPPUNIT_TEST_SUITE(ScTableConditionalFormatObj); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // XSheetConditionalEntries CPPUNIT_TEST(testAddNew); CPPUNIT_TEST(testClear); diff --git a/sc/qa/extras/sctablesheetsobj.cxx b/sc/qa/extras/sctablesheetsobj.cxx index a1152fa5cf08..f6539a21a5fd 100644 --- a/sc/qa/extras/sctablesheetsobj.cxx +++ b/sc/qa/extras/sctablesheetsobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/container/xnamecontainer.hxx> #include <test/sheet/xspreadsheets.hxx> #include <test/sheet/xspreadsheets2.hxx> @@ -20,7 +21,10 @@ using namespace css::uno; namespace sc_apitest { -class ScTableSheetsObj : public CalcUnoApiTest, public ::apitest::XSpreadsheets, public ::apitest::XSpreadsheets2, public apitest::XNameContainer +class ScTableSheetsObj : public CalcUnoApiTest, public apitest::XEnumerationAccess, + public ::apitest::XSpreadsheets, + public ::apitest::XSpreadsheets2, + public apitest::XNameContainer { public: ScTableSheetsObj(); @@ -30,6 +34,9 @@ public: CPPUNIT_TEST_SUITE(ScTableSheetsObj); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // XSpreadsheets CPPUNIT_TEST(testInsertNewByName); CPPUNIT_TEST(testInsertNewByNameBadName); diff --git a/sc/qa/extras/sctabviewobj.cxx b/sc/qa/extras/sctabviewobj.cxx index f4b54be64c7d..f92c2dd9fa57 100644 --- a/sc/qa/extras/sctabviewobj.cxx +++ b/sc/qa/extras/sctabviewobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xenumerationaccess.hxx> #include <test/sheet/spreadsheetviewsettings.hxx> #include <test/sheet/xactivationbroadcaster.hxx> #include <test/sheet/xcellrangereferrer.hxx> @@ -33,6 +34,7 @@ class ScTabViewObj : public CalcUnoApiTest, public apitest::SpreadsheetViewSettings, public apitest::XActivationBroadcaster, public apitest::XCellRangeReferrer, + public apitest::XEnumerationAccess, public apitest::XSpreadsheetView, public apitest::XViewFreezable, public apitest::XViewSplitable @@ -58,6 +60,9 @@ public: //Disabled till it's clear why it fails on some machines. //CPPUNIT_TEST(testGetReferredCells); + // XEnumerationAccess + CPPUNIT_TEST(testCreateEnumeration); + // XSpreadsheetView CPPUNIT_TEST(testGetSetActiveSheet); |