From 1dde2e441451ba6e7d760b1e1544440113993c24 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Wed, 15 Nov 2017 05:09:23 +0000 Subject: tdf#45904 Move _XSheetAnnotationsSupplier Java test to C++ Change-Id: I18143d96f49ea4f4b80ae89df33d2963bb20e125 Reviewed-on: https://gerrit.libreoffice.org/44747 Tested-by: Jenkins Reviewed-by: Jens Carl --- test/Library_subsequenttest.mk | 1 + test/source/sheet/xsheetannotationssupplier.cxx | 33 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 test/source/sheet/xsheetannotationssupplier.cxx (limited to 'test') diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk index a4efd36e46e9..dbdac2a4ca06 100644 --- a/test/Library_subsequenttest.mk +++ b/test/Library_subsequenttest.mk @@ -72,6 +72,7 @@ $(eval $(call gb_Library_add_exception_objects,subsequenttest,\ test/source/sheet/xspreadsheets2 \ test/source/sheet/xsheetannotation \ test/source/sheet/xsheetannotations \ + test/source/sheet/xsheetannotationssupplier \ test/source/sheet/xsheetannotationshapesupplier \ test/source/sheet/xsheetcellrangecontainer \ test/source/sheet/xsheetcellrange \ diff --git a/test/source/sheet/xsheetannotationssupplier.cxx b/test/source/sheet/xsheetannotationssupplier.cxx new file mode 100644 index 000000000000..82e4bb41e6c9 --- /dev/null +++ b/test/source/sheet/xsheetannotationssupplier.cxx @@ -0,0 +1,33 @@ +/* -*- 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 XSheetAnnotationsSupplier::testGetAnnotations() +{ + uno::Reference xSupplier(init(), UNO_QUERY_THROW); + + uno::Reference xAnnotations(xSupplier->getAnnotations(), + UNO_QUERY_THROW); + CPPUNIT_ASSERT_MESSAGE("Unable to get XSheetAnnotations", xAnnotations.is()); +} +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit