Kaydet (Commit) 9329d182 authored tarafından Rahul Gurung's avatar Rahul Gurung Kaydeden (comit) Markus Mohrhard

tdf#45904 Move _XEnumerationAccess Java Tests to C++

Change-Id: Id0aa9f3587fc6427bdbd938293eb3cc564c52bb1
Reviewed-on: https://gerrit.libreoffice.org/61731
Tested-by: Jenkins
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 68af083f
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* 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/.
*/
#ifndef INCLUDED_TEST_CONTAINER_XENUMERATIONACCESS_HXX
#define INCLUDED_TEST_CONTAINER_XENUMERATIONACCESS_HXX
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <test/testdllapi.hxx>
namespace apitest
{
class OOO_DLLPUBLIC_TEST XEnumerationAccess
{
public:
virtual css::uno::Reference<css::uno::XInterface> init() = 0;
void testCreateEnumeration();
protected:
~XEnumerationAccess() {}
};
}
#endif // INCLUDED_TEST_CONTAINER_XENUMERATIONACCESS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
...@@ -2,4 +2,3 @@ ...@@ -2,4 +2,3 @@
"ScAnnotationsObj";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScAnnotationsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScAnnotationsObj";"com::sun::star::container::XElementAccess";"getElementType()" "ScAnnotationsObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScAnnotationsObj";"com::sun::star::container::XElementAccess";"hasElements()" "ScAnnotationsObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScAnnotationsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -2,4 +2,3 @@ ...@@ -2,4 +2,3 @@
"ScAreaLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScAreaLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScAreaLinksObj";"com::sun::star::container::XElementAccess";"getElementType()" "ScAreaLinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScAreaLinksObj";"com::sun::star::container::XElementAccess";"hasElements()" "ScAreaLinksObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScAreaLinksObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -11,4 +11,3 @@ ...@@ -11,4 +11,3 @@
"ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()" "ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
"ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()" "ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
"ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()" "ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
"ScAutoFormatObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -192,7 +192,6 @@ ...@@ -192,7 +192,6 @@
"ScCellObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()" "ScCellObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
"ScCellObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()" "ScCellObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
"ScCellObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()" "ScCellObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
"ScCellObj";"com::sun::star::container::XEnumerationAccess#optional";"createEnumeration()"
"ScCellObj";"com::sun::star::text::XText";"insertTextContent()" "ScCellObj";"com::sun::star::text::XText";"insertTextContent()"
"ScCellObj";"com::sun::star::text::XText";"removeTextContent()" "ScCellObj";"com::sun::star::text::XText";"removeTextContent()"
"ScCellObj";"com::sun::star::util::XModifyBroadcaster#optional";"addModifyListener()" "ScCellObj";"com::sun::star::util::XModifyBroadcaster#optional";"addModifyListener()"
......
...@@ -186,4 +186,3 @@ ...@@ -186,4 +186,3 @@
"ScCellRangesObj";"com::sun::star::chart::XChartDataArray";"setRowDescriptions()" "ScCellRangesObj";"com::sun::star::chart::XChartDataArray";"setRowDescriptions()"
"ScCellRangesObj";"com::sun::star::chart::XChartDataArray";"getColumnDescriptions()" "ScCellRangesObj";"com::sun::star::chart::XChartDataArray";"getColumnDescriptions()"
"ScCellRangesObj";"com::sun::star::chart::XChartDataArray";"setColumnDescriptions()" "ScCellRangesObj";"com::sun::star::chart::XChartDataArray";"setColumnDescriptions()"
"ScCellRangesObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -5,4 +5,3 @@ ...@@ -5,4 +5,3 @@
"ScDataPilotTablesObj";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScDataPilotTablesObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScDataPilotTablesObj";"com::sun::star::container::XElementAccess";"getElementType()" "ScDataPilotTablesObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScDataPilotTablesObj";"com::sun::star::container::XElementAccess";"hasElements()" "ScDataPilotTablesObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScDataPilotTablesObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -5,4 +5,3 @@ ...@@ -5,4 +5,3 @@
"ScDatabaseRangesObj";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScDatabaseRangesObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"getElementType()" "ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"hasElements()" "ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScDatabaseRangesObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -5,4 +5,3 @@ ...@@ -5,4 +5,3 @@
"ScFunctionListObj";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScFunctionListObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScFunctionListObj";"com::sun::star::container::XElementAccess";"getElementType()" "ScFunctionListObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScFunctionListObj";"com::sun::star::container::XElementAccess";"hasElements()" "ScFunctionListObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScFunctionListObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -2,4 +2,3 @@ ...@@ -2,4 +2,3 @@
"ScLabelRangesObj";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScLabelRangesObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScLabelRangesObj";"com::sun::star::container::XElementAccess";"getElementType()" "ScLabelRangesObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScLabelRangesObj";"com::sun::star::container::XElementAccess";"hasElements()" "ScLabelRangesObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScLabelRangesObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -5,4 +5,3 @@ ...@@ -5,4 +5,3 @@
"ScScenariosObj";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScScenariosObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScScenariosObj";"com::sun::star::container::XElementAccess";"getElementType()" "ScScenariosObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScScenariosObj";"com::sun::star::container::XElementAccess";"hasElements()" "ScScenariosObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScScenariosObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -9,4 +9,3 @@ ...@@ -9,4 +9,3 @@
"ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()" "ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
"ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()" "ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
"ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()" "ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
"ScSubTotalDescriptorBase";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
"ScTabViewObj";"com::sun::star::view::XFormLayerAccess#optional";"getFromController()" "ScTabViewObj";"com::sun::star::view::XFormLayerAccess#optional";"getFromController()"
"ScTabViewObj";"com::sun::star::view::XFormLayerAccess#optional";"isFormDesignMode()" "ScTabViewObj";"com::sun::star::view::XFormLayerAccess#optional";"isFormDesignMode()"
"ScTabViewObj";"com::sun::star::view::XFormLayerAccess#optional";"setFormDesignMode()" "ScTabViewObj";"com::sun::star::view::XFormLayerAccess#optional";"setFormDesignMode()"
"ScTabViewObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
"ScTabViewObj";"com::sun::star::frame::XController";"attachFrame()" "ScTabViewObj";"com::sun::star::frame::XController";"attachFrame()"
"ScTabViewObj";"com::sun::star::frame::XController";"attachModel()" "ScTabViewObj";"com::sun::star::frame::XController";"attachModel()"
"ScTabViewObj";"com::sun::star::frame::XController";"suspend()" "ScTabViewObj";"com::sun::star::frame::XController";"suspend()"
...@@ -49,4 +48,3 @@ ...@@ -49,4 +48,3 @@
"ScTabViewObj";"com::sun::star::awt::XUserInputInterception#optional";"removeKeyHandler()" "ScTabViewObj";"com::sun::star::awt::XUserInputInterception#optional";"removeKeyHandler()"
"ScTabViewObj";"com::sun::star::awt::XUserInputInterception#optional";"addMouseClickHandler()" "ScTabViewObj";"com::sun::star::awt::XUserInputInterception#optional";"addMouseClickHandler()"
"ScTabViewObj";"com::sun::star::awt::XUserInputInterception#optional";"removeMouseClickHandler()" "ScTabViewObj";"com::sun::star::awt::XUserInputInterception#optional";"removeMouseClickHandler()"
...@@ -5,4 +5,3 @@ ...@@ -5,4 +5,3 @@
"ScTableConditionalFormat";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScTableConditionalFormat";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"getElementType()" "ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"getElementType()"
"ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"hasElements()" "ScTableConditionalFormat";"com::sun::star::container::XElementAccess";"hasElements()"
"ScTableConditionalFormat";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -8,4 +8,3 @@ ...@@ -8,4 +8,3 @@
"ScTableSheetsObj";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScTableSheetsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScTableSheetsObj";"com::sun::star::container::XElementAccess";"getElementType()" "ScTableSheetsObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScTableSheetsObj";"com::sun::star::container::XElementAccess";"hasElements()" "ScTableSheetsObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScTableSheetsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/xsheetannotations.hxx> #include <test/sheet/xsheetannotations.hxx>
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
...@@ -20,7 +21,8 @@ using namespace css::uno; ...@@ -20,7 +21,8 @@ using namespace css::uno;
namespace sc_apitest { namespace sc_apitest {
class ScAnnontationsObj : public CalcUnoApiTest, public apitest::XSheetAnnotations class ScAnnontationsObj : public CalcUnoApiTest, public apitest::XEnumerationAccess,
public apitest::XSheetAnnotations
{ {
public: public:
ScAnnontationsObj(); ScAnnontationsObj();
...@@ -33,6 +35,9 @@ public: ...@@ -33,6 +35,9 @@ public:
CPPUNIT_TEST_SUITE(ScAnnontationsObj); CPPUNIT_TEST_SUITE(ScAnnontationsObj);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XSheetAnnotations // XSheetAnnotations
CPPUNIT_TEST(testInsertNew); CPPUNIT_TEST(testInsertNew);
CPPUNIT_TEST(testRemoveByIndex); CPPUNIT_TEST(testRemoveByIndex);
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/sheet/xarealinks.hxx> #include <test/sheet/xarealinks.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/sheet/XAreaLinks.hpp> #include <com/sun/star/sheet/XAreaLinks.hpp>
...@@ -22,7 +23,8 @@ using namespace css::uno; ...@@ -22,7 +23,8 @@ using namespace css::uno;
namespace sc_apitest { namespace sc_apitest {
class ScAreaLinksObj : public CalcUnoApiTest, public apitest::XAreaLinks class ScAreaLinksObj : public CalcUnoApiTest, public apitest::XAreaLinks,
public apitest::XEnumerationAccess
{ {
public: public:
ScAreaLinksObj(); ScAreaLinksObj();
...@@ -37,6 +39,9 @@ public: ...@@ -37,6 +39,9 @@ public:
CPPUNIT_TEST(testInsertAtPosition); CPPUNIT_TEST(testInsertAtPosition);
CPPUNIT_TEST(testRemoveByIndex); CPPUNIT_TEST(testRemoveByIndex);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/tableautoformat.hxx> #include <test/sheet/tableautoformat.hxx>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
...@@ -25,7 +26,10 @@ using namespace com::sun::star; ...@@ -25,7 +26,10 @@ using namespace com::sun::star;
namespace sc_apitest namespace sc_apitest
{ {
class ScAutoFormatObj : public CalcUnoApiTest, public apitest::TableAutoFormat class ScAutoFormatObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::TableAutoFormat
{ {
public: public:
ScAutoFormatObj(); ScAutoFormatObj();
...@@ -36,6 +40,9 @@ public: ...@@ -36,6 +40,9 @@ public:
CPPUNIT_TEST_SUITE(ScAutoFormatObj); CPPUNIT_TEST_SUITE(ScAutoFormatObj);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// TableAutoFormat // TableAutoFormat
CPPUNIT_TEST(testTableAutoFormatProperties); CPPUNIT_TEST(testTableAutoFormatProperties);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/sheetcell.hxx> #include <test/sheet/sheetcell.hxx>
#include <test/table/xcell.hxx> #include <test/table/xcell.hxx>
#include <test/sheet/xcelladdressable.hxx> #include <test/sheet/xcelladdressable.hxx>
...@@ -35,6 +36,7 @@ class ScCellObj : public CalcUnoApiTest, public apitest::SheetCell, ...@@ -35,6 +36,7 @@ class ScCellObj : public CalcUnoApiTest, public apitest::SheetCell,
public apitest::XCell, public apitest::XCell,
public apitest::XCellAddressable, public apitest::XCellAddressable,
public apitest::XColumnRowRange, public apitest::XColumnRowRange,
public apitest::XEnumerationAccess,
public apitest::XFormulaQuery, public apitest::XFormulaQuery,
public apitest::XIndent, public apitest::XIndent,
public apitest::XSheetAnnotationAnchor public apitest::XSheetAnnotationAnchor
...@@ -65,6 +67,9 @@ public: ...@@ -65,6 +67,9 @@ public:
CPPUNIT_TEST(testGetColumns); CPPUNIT_TEST(testGetColumns);
CPPUNIT_TEST(testGetRows); CPPUNIT_TEST(testGetRows);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XFormulaQuery // XFormulaQuery
CPPUNIT_TEST(testQueryDependents); CPPUNIT_TEST(testQueryDependents);
CPPUNIT_TEST(testQueryPrecedents); CPPUNIT_TEST(testQueryPrecedents);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/sheetcellranges.hxx> #include <test/sheet/sheetcellranges.hxx>
#include <test/sheet/xformulaquery.hxx> #include <test/sheet/xformulaquery.hxx>
#include <test/sheet/xsheetcellrangecontainer.hxx> #include <test/sheet/xsheetcellrangecontainer.hxx>
...@@ -32,6 +33,7 @@ namespace sc_apitest { ...@@ -32,6 +33,7 @@ namespace sc_apitest {
class ScCellRangesObj : public CalcUnoApiTest, class ScCellRangesObj : public CalcUnoApiTest,
public apitest::SheetCellRanges, public apitest::SheetCellRanges,
public apitest::XEnumerationAccess,
public apitest::XFormulaQuery, public apitest::XFormulaQuery,
public apitest::XIndent, public apitest::XIndent,
public apitest::XSheetCellRangeContainer, public apitest::XSheetCellRangeContainer,
...@@ -52,6 +54,9 @@ public: ...@@ -52,6 +54,9 @@ public:
// SheetCellRanges // SheetCellRanges
CPPUNIT_TEST(testSheetCellRangesProperties); CPPUNIT_TEST(testSheetCellRangesProperties);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XFormulaQuery // XFormulaQuery
CPPUNIT_TEST(testQueryDependents); CPPUNIT_TEST(testQueryDependents);
CPPUNIT_TEST(testQueryPrecedents); CPPUNIT_TEST(testQueryPrecedents);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/xdatabaseranges.hxx> #include <test/sheet/xdatabaseranges.hxx>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
...@@ -25,7 +26,9 @@ using namespace com::sun::star; ...@@ -25,7 +26,9 @@ using namespace com::sun::star;
namespace sc_apitest namespace sc_apitest
{ {
class ScDatabaseRangesObj : public CalcUnoApiTest, public apitest::XDatabaseRanges class ScDatabaseRangesObj : public CalcUnoApiTest,
public apitest::XDatabaseRanges,
public apitest::XEnumerationAccess
{ {
public: public:
ScDatabaseRangesObj(); ScDatabaseRangesObj();
...@@ -39,6 +42,9 @@ public: ...@@ -39,6 +42,9 @@ public:
// XDatabaseRanges // XDatabaseRanges
CPPUNIT_TEST(testAddRemoveDbRanges); CPPUNIT_TEST(testAddRemoveDbRanges);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/xdatapilottables.hxx> #include <test/sheet/xdatapilottables.hxx>
#include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/container/XIndexAccess.hpp>
...@@ -30,7 +31,9 @@ using namespace com::sun::star; ...@@ -30,7 +31,9 @@ using namespace com::sun::star;
namespace sc_apitest namespace sc_apitest
{ {
class ScDataPilotTablesObj : public CalcUnoApiTest, public apitest::XDataPilotTables class ScDataPilotTablesObj : public CalcUnoApiTest,
public apitest::XDataPilotTables,
public apitest::XEnumerationAccess
{ {
public: public:
ScDataPilotTablesObj(); ScDataPilotTablesObj();
...@@ -45,6 +48,9 @@ public: ...@@ -45,6 +48,9 @@ public:
// XDataPilotTables // XDataPilotTables
CPPUNIT_TEST(testXDataPilotTables); CPPUNIT_TEST(testXDataPilotTables);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/xfunctiondescriptions.hxx> #include <test/sheet/xfunctiondescriptions.hxx>
#include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XComponent.hpp>
...@@ -22,7 +23,9 @@ using namespace com::sun::star; ...@@ -22,7 +23,9 @@ using namespace com::sun::star;
namespace sc_apitest namespace sc_apitest
{ {
class ScFunctionListObj : public CalcUnoApiTest, public apitest::XFunctionDescriptions class ScFunctionListObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::XFunctionDescriptions
{ {
public: public:
ScFunctionListObj(); ScFunctionListObj();
...@@ -33,6 +36,9 @@ public: ...@@ -33,6 +36,9 @@ public:
CPPUNIT_TEST_SUITE(ScFunctionListObj); CPPUNIT_TEST_SUITE(ScFunctionListObj);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XFunctionDescriptions // XFunctionDescriptions
CPPUNIT_TEST(testGetById); CPPUNIT_TEST(testGetById);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/xlabelranges.hxx> #include <test/sheet/xlabelranges.hxx>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
...@@ -25,7 +26,9 @@ using namespace com::sun::star; ...@@ -25,7 +26,9 @@ using namespace com::sun::star;
namespace sc_apitest namespace sc_apitest
{ {
class ScLabelRangesObj : public CalcUnoApiTest, public apitest::XLabelRanges class ScLabelRangesObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::XLabelRanges
{ {
public: public:
ScLabelRangesObj(); ScLabelRangesObj();
...@@ -36,6 +39,9 @@ public: ...@@ -36,6 +39,9 @@ public:
CPPUNIT_TEST_SUITE(ScLabelRangesObj); CPPUNIT_TEST_SUITE(ScLabelRangesObj);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XLabelRanges // XLabelRanges
CPPUNIT_TEST(testAddNew); CPPUNIT_TEST(testAddNew);
CPPUNIT_TEST(testRemoveByIndex); CPPUNIT_TEST(testRemoveByIndex);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/xscenarios.hxx> #include <test/sheet/xscenarios.hxx>
#include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/container/XIndexAccess.hpp>
...@@ -32,7 +33,9 @@ using namespace com::sun::star; ...@@ -32,7 +33,9 @@ using namespace com::sun::star;
namespace sc_apitest namespace sc_apitest
{ {
class ScScenariosObj : public CalcUnoApiTest, public apitest::XScenarios class ScScenariosObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::XScenarios
{ {
public: public:
ScScenariosObj(); ScScenariosObj();
...@@ -43,6 +46,9 @@ public: ...@@ -43,6 +46,9 @@ public:
CPPUNIT_TEST_SUITE(ScScenariosObj); CPPUNIT_TEST_SUITE(ScScenariosObj);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XScenarios // XScenarios
CPPUNIT_TEST(testAddNewByName); CPPUNIT_TEST(testAddNewByName);
CPPUNIT_TEST(testRemoveByName); CPPUNIT_TEST(testRemoveByName);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/subtotaldescriptor.hxx> #include <test/sheet/subtotaldescriptor.hxx>
#include <test/sheet/xsubtotaldescriptor.hxx> #include <test/sheet/xsubtotaldescriptor.hxx>
...@@ -31,9 +32,9 @@ using namespace com::sun::star; ...@@ -31,9 +32,9 @@ using namespace com::sun::star;
namespace sc_apitest { namespace sc_apitest {
class ScSubTotalDescriptorBaseObj : public CalcUnoApiTest, class ScSubTotalDescriptorBaseObj : public CalcUnoApiTest,public apitest::XEnumerationAccess,
public apitest::SubTotalDescriptor, public apitest::SubTotalDescriptor,
public apitest::XSubTotalDescriptor public apitest::XSubTotalDescriptor
{ {
public: public:
ScSubTotalDescriptorBaseObj(); ScSubTotalDescriptorBaseObj();
...@@ -44,6 +45,9 @@ public: ...@@ -44,6 +45,9 @@ public:
CPPUNIT_TEST_SUITE(ScSubTotalDescriptorBaseObj); CPPUNIT_TEST_SUITE(ScSubTotalDescriptorBaseObj);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// SubTotalDescriptor // SubTotalDescriptor
CPPUNIT_TEST(testSubTotalDescriptorProperties); CPPUNIT_TEST(testSubTotalDescriptorProperties);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/xsheetconditionalentries.hxx> #include <test/sheet/xsheetconditionalentries.hxx>
#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/PropertyValue.hpp>
...@@ -34,7 +35,9 @@ using namespace com::sun::star; ...@@ -34,7 +35,9 @@ using namespace com::sun::star;
namespace sc_apitest namespace sc_apitest
{ {
class ScTableConditionalFormatObj : public CalcUnoApiTest, public apitest::XSheetConditionalEntries class ScTableConditionalFormatObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::XSheetConditionalEntries
{ {
public: public:
ScTableConditionalFormatObj(); ScTableConditionalFormatObj();
...@@ -46,6 +49,9 @@ public: ...@@ -46,6 +49,9 @@ public:
CPPUNIT_TEST_SUITE(ScTableConditionalFormatObj); CPPUNIT_TEST_SUITE(ScTableConditionalFormatObj);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XSheetConditionalEntries // XSheetConditionalEntries
CPPUNIT_TEST(testAddNew); CPPUNIT_TEST(testAddNew);
CPPUNIT_TEST(testClear); CPPUNIT_TEST(testClear);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xnamecontainer.hxx> #include <test/container/xnamecontainer.hxx>
#include <test/sheet/xspreadsheets.hxx> #include <test/sheet/xspreadsheets.hxx>
#include <test/sheet/xspreadsheets2.hxx> #include <test/sheet/xspreadsheets2.hxx>
...@@ -20,7 +21,10 @@ using namespace css::uno; ...@@ -20,7 +21,10 @@ using namespace css::uno;
namespace sc_apitest { 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: public:
ScTableSheetsObj(); ScTableSheetsObj();
...@@ -30,6 +34,9 @@ public: ...@@ -30,6 +34,9 @@ public:
CPPUNIT_TEST_SUITE(ScTableSheetsObj); CPPUNIT_TEST_SUITE(ScTableSheetsObj);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XSpreadsheets // XSpreadsheets
CPPUNIT_TEST(testInsertNewByName); CPPUNIT_TEST(testInsertNewByName);
CPPUNIT_TEST(testInsertNewByNameBadName); CPPUNIT_TEST(testInsertNewByNameBadName);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/sheet/spreadsheetviewsettings.hxx> #include <test/sheet/spreadsheetviewsettings.hxx>
#include <test/sheet/xactivationbroadcaster.hxx> #include <test/sheet/xactivationbroadcaster.hxx>
#include <test/sheet/xcellrangereferrer.hxx> #include <test/sheet/xcellrangereferrer.hxx>
...@@ -33,6 +34,7 @@ class ScTabViewObj : public CalcUnoApiTest, ...@@ -33,6 +34,7 @@ class ScTabViewObj : public CalcUnoApiTest,
public apitest::SpreadsheetViewSettings, public apitest::SpreadsheetViewSettings,
public apitest::XActivationBroadcaster, public apitest::XActivationBroadcaster,
public apitest::XCellRangeReferrer, public apitest::XCellRangeReferrer,
public apitest::XEnumerationAccess,
public apitest::XSpreadsheetView, public apitest::XSpreadsheetView,
public apitest::XViewFreezable, public apitest::XViewFreezable,
public apitest::XViewSplitable public apitest::XViewSplitable
...@@ -58,6 +60,9 @@ public: ...@@ -58,6 +60,9 @@ public:
//Disabled till it's clear why it fails on some machines. //Disabled till it's clear why it fails on some machines.
//CPPUNIT_TEST(testGetReferredCells); //CPPUNIT_TEST(testGetReferredCells);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XSpreadsheetView // XSpreadsheetView
CPPUNIT_TEST(testGetSetActiveSheet); CPPUNIT_TEST(testGetSetActiveSheet);
......
...@@ -43,6 +43,7 @@ $(eval $(call gb_Library_add_exception_objects,subsequenttest,\ ...@@ -43,6 +43,7 @@ $(eval $(call gb_Library_add_exception_objects,subsequenttest,\
test/source/beans/xpropertyset \ test/source/beans/xpropertyset \
test/source/container/xchild \ test/source/container/xchild \
test/source/container/xelementaccess \ test/source/container/xelementaccess \
test/source/container/xenumerationaccess \
test/source/container/xindexaccess \ test/source/container/xindexaccess \
test/source/container/xnamecontainer \ test/source/container/xnamecontainer \
test/source/container/xnamed \ test/source/container/xnamed \
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* 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/.
*/
#include <test/container/xenumerationaccess.hxx>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <cppunit/extensions/HelperMacros.h>
using namespace com::sun::star;
using namespace com::sun::star::uno;
namespace apitest
{
void XEnumerationAccess::testCreateEnumeration()
{
uno::Reference<container::XEnumerationAccess> xEnumerationAccess(init(), UNO_QUERY_THROW);
CPPUNIT_ASSERT_MESSAGE("Successfully able to Create Enumeration",
xEnumerationAccess->createEnumeration());
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment