diff options
author | Jens Carl <j.carl43@gmx.de> | 2017-12-06 22:48:01 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2017-12-07 06:48:37 +0100 |
commit | c7e5c7da98d40852d18bd7683e40c9679836ba49 (patch) | |
tree | 2e3b3261cca1bea2dcbf3f302c812b2cf5b4ccf6 /test/source/sheet/xdatapilottablessupplier.cxx | |
parent | e5a3f12588e8e8eb80cc5af4e412fa2c83f0895e (diff) |
tdf#45904 Move _XDataPilotTablesSupplier Java test to C++
Change-Id: Iaea5b7abc0a289035c7a230c0034d2422cc4ae5f
Reviewed-on: https://gerrit.libreoffice.org/46001
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'test/source/sheet/xdatapilottablessupplier.cxx')
-rw-r--r-- | test/source/sheet/xdatapilottablessupplier.cxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/source/sheet/xdatapilottablessupplier.cxx b/test/source/sheet/xdatapilottablessupplier.cxx new file mode 100644 index 000000000000..5a761d98d65c --- /dev/null +++ b/test/source/sheet/xdatapilottablessupplier.cxx @@ -0,0 +1,32 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <test/sheet/xdatapilottablessupplier.hxx> + +#include <com/sun/star/sheet/XDataPilotTables.hpp> +#include <com/sun/star/sheet/XDataPilotTablesSupplier.hpp> +#include <com/sun/star/uno/Reference.hxx> + +#include <cppunit/extensions/HelperMacros.h> + +using namespace css; +using namespace css::uno; + +namespace apitest +{ +void XDataPilotTablesSupplier::testGetDataPilotTables() +{ + uno::Reference<sheet::XDataPilotTablesSupplier> xDPTS(init(), UNO_QUERY_THROW); + + uno::Reference<sheet::XDataPilotTables> xDPT(xDPTS->getDataPilotTables(), UNO_QUERY_THROW); + CPPUNIT_ASSERT_MESSAGE("Unable to get XDataPilotTables", xDPT.is()); +} +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |