diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-01-16 21:08:22 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-01-17 01:41:00 +0100 |
commit | b69b90bbeac795b15418b884ac4b26e35ceb08db (patch) | |
tree | d5e317235faa50455b72f8a6e6f69795234a518d /sc | |
parent | 1ffde9252f4583264a1f90449b9ea7cf83c2e9d9 (diff) |
tdf#45904 Move XNameAccess Java tests to C++
Move XNameAccess Java tests to C++ for ScTableConditionalFormat.
Change-Id: I675d5d5aea24f76c19507d2a4181715ab70dd48d
Reviewed-on: https://gerrit.libreoffice.org/66485
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/sctableconditionalformat.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/sctableconditionalformat.cxx b/sc/qa/extras/sctableconditionalformat.cxx index d19ceccce756..75ebd3adb399 100644 --- a/sc/qa/extras/sctableconditionalformat.cxx +++ b/sc/qa/extras/sctableconditionalformat.cxx @@ -9,6 +9,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/container/xenumerationaccess.hxx> +#include <test/container/xnameaccess.hxx> #include <test/sheet/xsheetconditionalentries.hxx> #include <com/sun/star/beans/PropertyValue.hpp> @@ -22,12 +23,12 @@ #include <com/sun/star/sheet/XSpreadsheets.hpp> #include <com/sun/star/sheet/XSpreadsheet.hpp> #include <com/sun/star/table/CellAddress.hpp> +#include <com/sun/star/uno/XInterface.hpp> #include <unonames.hxx> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/XInterface.hpp> using namespace css; using namespace css::uno; @@ -37,6 +38,7 @@ namespace sc_apitest { class ScTableConditionalFormat : public CalcUnoApiTest, public apitest::XEnumerationAccess, + public apitest::XNameAccess, public apitest::XSheetConditionalEntries { public: @@ -52,6 +54,11 @@ public: // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); + // XNameAccess + CPPUNIT_TEST(testGetByName); + CPPUNIT_TEST(testGetElementNames); + CPPUNIT_TEST(testHasByName); + // XSheetConditionalEntries CPPUNIT_TEST(testAddNew); CPPUNIT_TEST(testClear); @@ -65,6 +72,7 @@ private: ScTableConditionalFormat::ScTableConditionalFormat() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XNameAccess("Entry1") { } |