Kaydet (Commit) 33989dcb authored tarafından Jens Carl's avatar Jens Carl

Add XServiceInfo tests to ScTableValidationObj

Change-Id: I51d48bc8096267a657e7ac588c79864489b5b846
Reviewed-on: https://gerrit.libreoffice.org/66891
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst dd015596
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/beans/xpropertyset.hxx> #include <test/beans/xpropertyset.hxx>
#include <test/lang/xserviceinfo.hxx>
#include <test/sheet/tablevalidation.hxx> #include <test/sheet/tablevalidation.hxx>
#include <test/sheet/xsheetcondition.hxx> #include <test/sheet/xsheetcondition.hxx>
...@@ -33,6 +34,7 @@ namespace sc_apitest ...@@ -33,6 +34,7 @@ namespace sc_apitest
class ScTableValidationObj : public CalcUnoApiTest, class ScTableValidationObj : public CalcUnoApiTest,
public apitest::TableValidation, public apitest::TableValidation,
public apitest::XPropertySet, public apitest::XPropertySet,
public apitest::XServiceInfo,
public apitest::XSheetCondition public apitest::XSheetCondition
{ {
public: public:
...@@ -54,6 +56,11 @@ public: ...@@ -54,6 +56,11 @@ public:
CPPUNIT_TEST(testPropertyChangeListner); CPPUNIT_TEST(testPropertyChangeListner);
CPPUNIT_TEST(testVetoableChangeListner); CPPUNIT_TEST(testVetoableChangeListner);
// XServiceInfo
CPPUNIT_TEST(testGetImplementationName);
CPPUNIT_TEST(testGetSupportedServiceNames);
CPPUNIT_TEST(testSupportsService);
// XSheetCondition // XSheetCondition
CPPUNIT_TEST(testGetSetFormula1); CPPUNIT_TEST(testGetSetFormula1);
CPPUNIT_TEST(testGetSetFormula2); CPPUNIT_TEST(testGetSetFormula2);
...@@ -69,6 +76,7 @@ private: ...@@ -69,6 +76,7 @@ private:
ScTableValidationObj::ScTableValidationObj() ScTableValidationObj::ScTableValidationObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments") : CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XPropertySet({ "Type", "ErrorAlertStyle" }) , XPropertySet({ "Type", "ErrorAlertStyle" })
, XServiceInfo("ScTableValidationObj", "com.sun.star.sheet.TableValidation")
{ {
} }
......
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