Kaydet (Commit) 189d8ade authored tarafından Rahul Gurung's avatar Rahul Gurung Kaydeden (comit) Jens Carl

tdf#45904 Move _XTableChartsSupplier Java Tests to C++

Change-Id: I4cd0b25cefce60e8253df65d5136d15d690dbc38
Reviewed-on: https://gerrit.libreoffice.org/61540
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 872f363a
/* -*- 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/.
*/
#ifndef INCLUDED_TEST_TABLE_XTABLECHARTSSUPPLIER_HXX
#define INCLUDED_TEST_TABLE_XTABLECHARTSSUPPLIER_HXX
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <test/testdllapi.hxx>
namespace apitest
{
class OOO_DLLPUBLIC_TEST XTableChartsSupplier
{
public:
virtual css::uno::Reference<css::uno::XInterface> init() = 0;
void testGetCharts();
protected:
~XTableChartsSupplier() {}
};
}
#endif // INCLUDED_TEST_TABLE_XTABLECHARTSSUPPLIER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
......@@ -590,7 +590,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\
qadevOOo/tests/java/ifc/table/_XCellRange \
qadevOOo/tests/java/ifc/table/_XTableChart \
qadevOOo/tests/java/ifc/table/_XTableCharts \
qadevOOo/tests/java/ifc/table/_XTableChartsSupplier \
qadevOOo/tests/java/ifc/table/_XTableColumns \
qadevOOo/tests/java/ifc/table/_XTableRows \
qadevOOo/tests/java/ifc/task/_XInteractionHandler \
......
......@@ -109,7 +109,6 @@
"ScTableSheetObj";"com::sun::star::util::XProtectable";"unprotect()"
"ScTableSheetObj";"com::sun::star::util::XProtectable";"isProtected()"
"ScTableSheetObj";"com::sun::star::table::XAutoFormattable";"autoFormat()"
"ScTableSheetObj";"com::sun::star::table::XTableChartsSupplier";"getCharts()"
"ScTableSheetObj";"com::sun::star::sheet::XCellRangesQuery";"queryVisibleCells()"
"ScTableSheetObj";"com::sun::star::sheet::XCellRangesQuery";"queryEmptyCells()"
"ScTableSheetObj";"com::sun::star::sheet::XCellRangesQuery";"queryContentCells()"
......
/*
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
package ifc.table;
import lib.MultiMethodTest;
import com.sun.star.table.XTableChartsSupplier;
/**
* Testing <code>com.sun.star.table.XTableChartsSupplier</code>
* interface methods :
* <ul>
* <li><code> getCharts()</code></li>
* </ul> <p>
* @see com.sun.star.table.XTableChartsSupplier
*/
public class _XTableChartsSupplier extends MultiMethodTest {
public XTableChartsSupplier oObj = null;
/**
* Test calls the method. <p>
* Has <b> OK </b> status if the method returns not
* <code>null</code> value.
*/
public void _getCharts() {
tRes.tested( "getCharts()", oObj.getCharts()!=null );
} // getCharts()
} // finish class _XTableChartsSupplier
......@@ -37,6 +37,7 @@
#include <test/sheet/xsubtotalcalculatable.hxx>
#include <test/sheet/xuniquecellformatrangessupplier.hxx>
#include <test/table/xcolumnrowrange.hxx>
#include <test/table/xtablechartssupplier.hxx>
#include <test/util/xindent.hxx>
#include <test/util/xmergeable.hxx>
#include <test/util/xreplaceable.hxx>
......@@ -85,6 +86,7 @@ class ScTableSheetObj : public CalcUnoApiTest, public apitest::Scenario,
public apitest::XSheetPageBreak,
public apitest::XSpreadsheet,
public apitest::XSubTotalCalculatable,
public apitest::XTableChartsSupplier,
public apitest::XUniqueCellFormatRangesSupplier
{
public:
......@@ -230,6 +232,9 @@ public:
CPPUNIT_TEST(testCreateSubTotalDescriptor);
CPPUNIT_TEST(testApplyRemoveSubTotals);
// XTableChartsSupplier
CPPUNIT_TEST(testGetCharts);
// XUniqueCellFormatRangesSupplier
CPPUNIT_TEST(testGetUniqueCellFormatRanges);
......
......@@ -150,6 +150,7 @@ $(eval $(call gb_Library_add_exception_objects,subsequenttest,\
test/source/table/xcell \
test/source/table/xcellcursor \
test/source/table/xcolumnrowrange \
test/source/table/xtablechartssupplier \
test/source/text/xtext \
test/source/text/xtextfield \
test/source/text/xtextcontent \
......
/* -*- 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/table/xtablechartssupplier.hxx>
#include <com/sun/star/table/XTableChartsSupplier.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 XTableChartsSupplier::testGetCharts()
{
uno::Reference<table::XTableChartsSupplier> xTableChartsSupplier(init(), UNO_QUERY_THROW);
CPPUNIT_ASSERT_MESSAGE("Successfully able to Get Charts", xTableChartsSupplier->getCharts());
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment