summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorkadertarlan <kadertarlan1@gmail.com>2016-02-22 02:08:55 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-20 00:00:30 +0000
commit1d5767c6e464b914812867aac5c3ccd0745dd1ea (patch)
tree208ebb0b1260c8c5d5076641aca5b5010473e1d9 /test/source
parentc94ca74133784dd93b7185e20f79602d6e314206 (diff)
tdf#45904 move java based api tests to c++
Change-Id: Ibd9411e844c8e42fe625ffd979e936f827099ee9 Reviewed-on: https://gerrit.libreoffice.org/22604 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'test/source')
-rw-r--r--test/source/beans/xpropertyset.cxx11
-rw-r--r--test/source/sheet/xdatapilotdescriptor.cxx1
2 files changed, 11 insertions, 1 deletions
diff --git a/test/source/beans/xpropertyset.cxx b/test/source/beans/xpropertyset.cxx
index 3161b8741894..c771042b8411 100644
--- a/test/source/beans/xpropertyset.cxx
+++ b/test/source/beans/xpropertyset.cxx
@@ -141,6 +141,12 @@ bool XPropertySet::isPropertyValueChangeable(const OUString& rName)
}
else
{
+ bool bIgnore = isPropertyIgnored(rName);
+ if (bIgnore)
+ return false;
+
+ std::cout << type.getTypeName() << std::endl;
+ std::cout << rName << std::endl;
CPPUNIT_ASSERT_MESSAGE("XPropertySet::isChangeable: unknown type in Any tested.", false);
}
@@ -216,6 +222,11 @@ bool XPropertySet::getSinglePropertyValue(
return false;
}
+bool XPropertySet::isPropertyIgnored(const OUString& /*rName*/)
+{
+ return false;
+}
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/test/source/sheet/xdatapilotdescriptor.cxx b/test/source/sheet/xdatapilotdescriptor.cxx
index 4def745151cf..d8f409f63205 100644
--- a/test/source/sheet/xdatapilotdescriptor.cxx
+++ b/test/source/sheet/xdatapilotdescriptor.cxx
@@ -178,7 +178,6 @@ void XDataPilotDescriptor::testGetDataFields()
void XDataPilotDescriptor::testGetHiddenFields()
{
- std::cout << "testGetHiddenFields" <<std::endl;
uno::Reference< sheet::XDataPilotDescriptor > xDescr(init(),UNO_QUERY_THROW);
testGetDataPilotFields_Impl( xDescr );
uno::Reference< container::XIndexAccess > xIndex(xDescr->getHiddenFields(), UNO_QUERY_THROW);