summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 14:21:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 14:21:47 +0200
commite598c5f7d0c980176b40bec37f17d8b4aedae1fd (patch)
tree7f04ea36a72c35d05cfe092d0b3fce7220872f81 /configmgr
parentd70cc23f9a84cac73c98f90204982e53b3383dc1 (diff)
loplugin:cppunitassertequals: configmgr
Change-Id: I02d54c1eee815e7c6575a8131d59974089299bdf
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();