summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/qa/unit/test.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx
index f9d7df883810..bc3b31775b6d 100644
--- a/configmgr/qa/unit/test.cxx
+++ b/configmgr/qa/unit/test.cxx
@@ -165,13 +165,21 @@ RecursiveTest::~RecursiveTest()
void RecursiveTest::disposing(css::lang::EventObject const & Source)
{
- CPPUNIT_ASSERT(properties_.is() && Source.Source == properties_);
+ CPPUNIT_ASSERT(properties_.is());
+ CPPUNIT_ASSERT_EQUAL(
+ css::uno::Reference<css::uno::XInterface>(
+ properties_, css::uno::UNO_QUERY_THROW),
+ Source.Source);
properties_.clear();
}
void RecursiveTest::propertyChange(css::beans::PropertyChangeEvent const & evt)
{
- CPPUNIT_ASSERT( evt.Source == properties_ && evt.PropertyName == "Label" );
+ CPPUNIT_ASSERT_EQUAL(
+ css::uno::Reference<css::uno::XInterface>(
+ properties_, css::uno::UNO_QUERY_THROW),
+ evt.Source);
+ CPPUNIT_ASSERT_EQUAL( OUString("Label"), evt.PropertyName );
if (count_ > 0) {
--count_;
step();