diff options
author | Jens Carl <j.carl43@gmx.de> | 2017-07-05 06:17:49 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-07-08 12:40:49 +0200 |
commit | 472737ad70f1a3eaa22cab9b746d35e4b94094a0 (patch) | |
tree | 7b959113b7a2ef6dc15bb424eccd3907d5a09863 /sc | |
parent | bbfdd03460ddf5e33f5fda000df9e6f6ce458288 (diff) |
tdf#45904 Move Java XSheetAnnotationShapeSupplier test to C++
Change-Id: I5a3d64fd255fb8fd1f1caba572bc00a5399a6519
Reviewed-on: https://gerrit.libreoffice.org/39550
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scannotationobj.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/qa/extras/scannotationobj.cxx b/sc/qa/extras/scannotationobj.cxx index 4b4b048dfb0c..1120974d71b4 100644 --- a/sc/qa/extras/scannotationobj.cxx +++ b/sc/qa/extras/scannotationobj.cxx @@ -9,7 +9,9 @@ #include <test/calc_unoapi_test.hxx> #include <test/sheet/xsheetannotation.hxx> +#include <test/sheet/xsheetannotationshapesupplier.hxx> +#include <com/sun/star/sheet/XSheetAnnotationShapeSupplier.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> #include <com/sun/star/sheet/XSpreadsheet.hpp> @@ -24,9 +26,9 @@ using namespace css::uno; namespace sc_apitest { -#define NUMBER_OF_TESTS 5 +#define NUMBER_OF_TESTS 6 -class ScAnnontationObj : public CalcUnoApiTest, public apitest::XSheetAnnotation +class ScAnnontationObj : public CalcUnoApiTest, public apitest::XSheetAnnotation, public apitest::XSheetAnnotationShapeSupplier { public: ScAnnontationObj(); @@ -38,11 +40,17 @@ public: virtual uno::Reference< sheet::XSheetAnnotation> getAnnotation(table::CellAddress&) override; CPPUNIT_TEST_SUITE(ScAnnontationObj); + + // XSheetAnnotation CPPUNIT_TEST(testGetPosition); CPPUNIT_TEST(testGetAuthor); CPPUNIT_TEST(testGetDate); CPPUNIT_TEST(testGetIsVisible); CPPUNIT_TEST(testSetIsVisible); + + // XSheetAnnotationShapeSupplier + CPPUNIT_TEST(testGetAnnotationShape); + CPPUNIT_TEST_SUITE_END(); private: |