summaryrefslogtreecommitdiff
path: root/test/source/container
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-02-28 01:37:03 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-02-28 00:41:23 +0000
commit5978b78eb2ee016bfda0a572ae1a9c86dc639241 (patch)
treeb6330aa83595caabe76c7e6aba3db80e6c3bda27 /test/source/container
parent6b6d3f9d3df25d337cd1b5c191b2b2b05835cb7b (diff)
use better assert macros
Change-Id: I6fcfcced0c9017003472e19ab5619ecb26a992eb Reviewed-on: https://gerrit.libreoffice.org/22741 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'test/source/container')
-rw-r--r--test/source/container/xnamed.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/source/container/xnamed.cxx b/test/source/container/xnamed.cxx
index a3344026bf16..f9b935c76b6e 100644
--- a/test/source/container/xnamed.cxx
+++ b/test/source/container/xnamed.cxx
@@ -19,7 +19,7 @@ namespace apitest {
void XNamed::testGetName()
{
uno::Reference< container::XNamed > xNamed(init(), UNO_QUERY_THROW);
- CPPUNIT_ASSERT( maTestName == xNamed->getName() );
+ CPPUNIT_ASSERT_EQUAL(maTestName, xNamed->getName());
}
void XNamed::testSetName()
@@ -28,11 +28,11 @@ void XNamed::testSetName()
OUString aTestName("NewName");
xNamed->setName(aTestName);
- CPPUNIT_ASSERT( aTestName == xNamed->getName() );
+ CPPUNIT_ASSERT_EQUAL(aTestName, xNamed->getName());
// restore old name
xNamed->setName(maTestName);
- CPPUNIT_ASSERT(maTestName == xNamed->getName());
+ CPPUNIT_ASSERT_EQUAL(maTestName, xNamed->getName());
}
XNamed::~XNamed()