diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-06-13 05:51:11 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-06-13 17:53:30 +0200 |
commit | 600987b415e537362125b4445ab7132535e6e1e1 (patch) | |
tree | d032d3fda7e2c8d4987ceb5963bf21e3b0f40302 /test | |
parent | 0554e74260ee684d0859d655e42da8ad6eefd4a9 (diff) |
tdf#45904 Move remaining _XCellRangeReferrer Java tests to C++
Move remaining _XCellRangeReferrer tests to C++ and partly fix #i84656.
Change-Id: I77cc8550888f460a6ae265816907a19a81cbe871
Reviewed-on: https://gerrit.libreoffice.org/55732
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/sheet/xcellrangereferrer.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/source/sheet/xcellrangereferrer.cxx b/test/source/sheet/xcellrangereferrer.cxx index 60a3976216cd..7ce7dd384a95 100644 --- a/test/source/sheet/xcellrangereferrer.cxx +++ b/test/source/sheet/xcellrangereferrer.cxx @@ -7,10 +7,13 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <test/cppunitasserthelper.hxx> #include <test/sheet/xcellrangereferrer.hxx> + #include <com/sun/star/table/XCellRange.hpp> #include <com/sun/star/sheet/XCellRangeAddressable.hpp> #include <com/sun/star/sheet/XCellRangeReferrer.hpp> + #include <cppunit/extensions/HelperMacros.h> using namespace css; @@ -26,13 +29,8 @@ void XCellRangeReferrer::testGetReferredCells() uno::Reference< sheet::XCellRangeAddressable > xAdressable( xReferredRange, UNO_QUERY_THROW ); table::CellRangeAddress aCellRange = xAdressable->getRangeAddress(); - CPPUNIT_ASSERT_EQUAL( aCellRange.Sheet, maCellRange.Sheet ); - CPPUNIT_ASSERT_EQUAL( aCellRange.StartRow, maCellRange.StartRow ); - CPPUNIT_ASSERT_EQUAL( aCellRange.EndRow, maCellRange.EndRow ); - CPPUNIT_ASSERT_EQUAL( aCellRange.StartColumn, maCellRange.StartColumn ); - CPPUNIT_ASSERT_EQUAL( aCellRange.EndColumn, maCellRange.EndColumn ); + CPPUNIT_ASSERT_EQUAL(aCellRange, getCellRange()); } - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |