summaryrefslogtreecommitdiff
path: root/include/test
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-01-25 00:41:35 +0000
committerJens Carl <j.carl43@gmx.de>2019-01-25 04:17:29 +0100
commitdd0155967e0b679b7df3907fcb12e8cbd82cdefb (patch)
tree2308d5df1d7a86e3a9aa3d734c5ef134ea526877 /include/test
parent017f846efa9b31cb692ad0c477b8e3607f297181 (diff)
tdf#45904 Move XPropertySet Java tests to C++
Move XPropertySet Java tests to C++ for ScTableValidationObj. Change-Id: If058f40ff73203d2705bf9841d0496d52ff93ed8 Reviewed-on: https://gerrit.libreoffice.org/66890 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'include/test')
-rw-r--r--include/test/beans/xpropertyset.hxx25
1 files changed, 18 insertions, 7 deletions
diff --git a/include/test/beans/xpropertyset.hxx b/include/test/beans/xpropertyset.hxx
index 3b110a53db3c..72827aa6ee76 100644
--- a/include/test/beans/xpropertyset.hxx
+++ b/include/test/beans/xpropertyset.hxx
@@ -10,36 +10,46 @@
#ifndef INCLUDED_TEST_BEANS_XPROPERTYSET_HXX
#define INCLUDED_TEST_BEANS_XPROPERTYSET_HXX
-#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
+#include <com/sun/star/uno/Reference.hxx>
+
#include <test/testdllapi.hxx>
+#include <set>
#include <vector>
-namespace apitest {
-
+namespace apitest
+{
class OOO_DLLPUBLIC_TEST XPropertySet
{
public:
- virtual ~XPropertySet();
+ XPropertySet() {}
+ XPropertySet(const std::set<OUString> rIgnoreValue)
+ : m_IgnoreValue(rIgnoreValue)
+ {
+ }
virtual css::uno::Reference<css::uno::XInterface> init() = 0;
void testGetPropertySetInfo();
void testSetPropertyValue();
void testGetPropertyValue();
+ void testPropertyChangeListner();
+ void testVetoableChangeListner();
protected:
+ ~XPropertySet(){};
bool isPropertyValueChangeable(const OUString& rName);
virtual bool isPropertyIgnored(const OUString& rName);
private:
void fillPropsToTest(const css::uno::Reference<css::beans::XPropertySetInfo>& xPropInfo);
- static bool getSinglePropertyValue(
- const css::uno::Reference<css::beans::XPropertySet>& xPropSet, const OUString& rName);
+ static bool
+ getSinglePropertyValue(const css::uno::Reference<css::beans::XPropertySet>& xPropSet,
+ const OUString& rName);
struct OOO_DLLPUBLIC_TEST PropsToTest
{
@@ -54,9 +64,10 @@ private:
};
PropsToTest maPropsToTest;
+ std::set<OUString> m_IgnoreValue;
};
-}
+} // namespace apitest
#endif