diff options
author | Rahul Gurung <gurungrahul2@gmail.com> | 2018-10-13 00:18:58 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-02 06:29:58 +0100 |
commit | 9329d18235d21a00dbc724ba3251e95fbb675588 (patch) | |
tree | bfbc019405aa3957b609ad05709abd7d448f049e /test | |
parent | 68af083f9a8e3904aa3c341da5c598212da68f6f (diff) |
tdf#45904 Move _XEnumerationAccess Java Tests to C++
Change-Id: Id0aa9f3587fc6427bdbd938293eb3cc564c52bb1
Reviewed-on: https://gerrit.libreoffice.org/61731
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/Library_subsequenttest.mk | 1 | ||||
-rw-r--r-- | test/source/container/xenumerationaccess.cxx | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk index 694fc9c5041d..cf30238f7d71 100644 --- a/test/Library_subsequenttest.mk +++ b/test/Library_subsequenttest.mk @@ -43,6 +43,7 @@ $(eval $(call gb_Library_add_exception_objects,subsequenttest,\ test/source/beans/xpropertyset \ test/source/container/xchild \ test/source/container/xelementaccess \ + test/source/container/xenumerationaccess \ test/source/container/xindexaccess \ test/source/container/xnamecontainer \ test/source/container/xnamed \ diff --git a/test/source/container/xenumerationaccess.cxx b/test/source/container/xenumerationaccess.cxx new file mode 100644 index 000000000000..2de4999f3525 --- /dev/null +++ b/test/source/container/xenumerationaccess.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/container/xenumerationaccess.hxx> + +#include <com/sun/star/container/XEnumerationAccess.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <cppunit/extensions/HelperMacros.h> + +using namespace com::sun::star; +using namespace com::sun::star::uno; + +namespace apitest +{ +void XEnumerationAccess::testCreateEnumeration() +{ + uno::Reference<container::XEnumerationAccess> xEnumerationAccess(init(), UNO_QUERY_THROW); + + CPPUNIT_ASSERT_MESSAGE("Successfully able to Create Enumeration", + xEnumerationAccess->createEnumeration()); +} +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |