From 9ccd22820d6b57393b59fe0f70b29dce71eade48 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Wed, 15 Nov 2017 07:05:22 +0000 Subject: tdf#45904 Move _XScenariosSupplier Java test to C++ Change-Id: I152f6358e505d7a480e157bd49613e0bb496e163 Reviewed-on: https://gerrit.libreoffice.org/44748 Tested-by: Jenkins Reviewed-by: Jens Carl --- test/Library_subsequenttest.mk | 1 + test/source/sheet/xscenariossupplier.cxx | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 test/source/sheet/xscenariossupplier.cxx (limited to 'test') diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk index dbdac2a4ca06..531dfa35dc47 100644 --- a/test/Library_subsequenttest.mk +++ b/test/Library_subsequenttest.mk @@ -66,6 +66,7 @@ $(eval $(call gb_Library_add_exception_objects,subsequenttest,\ test/source/sheet/xnamedranges \ test/source/sheet/xprintareas \ test/source/sheet/xscenarios \ + test/source/sheet/xscenariossupplier \ test/source/sheet/xspreadsheetdocument \ test/source/sheet/xspreadsheet \ test/source/sheet/xspreadsheets \ diff --git a/test/source/sheet/xscenariossupplier.cxx b/test/source/sheet/xscenariossupplier.cxx new file mode 100644 index 000000000000..c9819d5e8389 --- /dev/null +++ b/test/source/sheet/xscenariossupplier.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 + +#include +#include +#include + +#include + +using namespace css; +using namespace css::uno; + +namespace apitest +{ +void XScenariosSupplier::testGetScenarios() +{ + uno::Reference xSupplier(init(), UNO_QUERY_THROW); + + uno::Reference xScenarios(xSupplier->getScenarios(), UNO_QUERY_THROW); + CPPUNIT_ASSERT_MESSAGE("Unable to get XScenarios", xScenarios.is()); +} +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit