summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-01-25 02:03:47 +0000
committerJens Carl <j.carl43@gmx.de>2019-01-25 04:17:47 +0100
commit33989dcb4ac1730835ba421a4488dbafb877433a (patch)
tree4b18307def02c330f3feaca2601239707baf3746
parentdd0155967e0b679b7df3907fcb12e8cbd82cdefb (diff)
Add XServiceInfo tests to ScTableValidationObj
Change-Id: I51d48bc8096267a657e7ac588c79864489b5b846 Reviewed-on: https://gerrit.libreoffice.org/66891 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r--sc/qa/extras/sctablevalidationobj.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/qa/extras/sctablevalidationobj.cxx b/sc/qa/extras/sctablevalidationobj.cxx
index 542e5b2fa7d6..8ba211c43cc6 100644
--- a/sc/qa/extras/sctablevalidationobj.cxx
+++ b/sc/qa/extras/sctablevalidationobj.cxx
@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/beans/xpropertyset.hxx>
+#include <test/lang/xserviceinfo.hxx>
#include <test/sheet/tablevalidation.hxx>
#include <test/sheet/xsheetcondition.hxx>
@@ -33,6 +34,7 @@ namespace sc_apitest
class ScTableValidationObj : public CalcUnoApiTest,
public apitest::TableValidation,
public apitest::XPropertySet,
+ public apitest::XServiceInfo,
public apitest::XSheetCondition
{
public:
@@ -54,6 +56,11 @@ public:
CPPUNIT_TEST(testPropertyChangeListner);
CPPUNIT_TEST(testVetoableChangeListner);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
// XSheetCondition
CPPUNIT_TEST(testGetSetFormula1);
CPPUNIT_TEST(testGetSetFormula2);
@@ -69,6 +76,7 @@ private:
ScTableValidationObj::ScTableValidationObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XPropertySet({ "Type", "ErrorAlertStyle" })
+ , XServiceInfo("ScTableValidationObj", "com.sun.star.sheet.TableValidation")
{
}