summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-07 12:14:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 12:39:20 +0200
commitdaf177f703081d7afaa9b1701cf187c9a3e93ee5 (patch)
tree32e5bc14b5707777795ac26089c402cc3e93c2e3 /test
parent3ef7e85deb7afde6c9453c30be0a7893528a90a1 (diff)
use more OUString::operator== in test..xmlsecurity
Change-Id: If5bdd1532be44a47ff7cc3b769be3ea585aea562 Reviewed-on: https://gerrit.libreoffice.org/39685 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/source/sheet/xnamedrange.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/source/sheet/xnamedrange.cxx b/test/source/sheet/xnamedrange.cxx
index 84e4cb1c4875..faaa2a47b56a 100644
--- a/test/source/sheet/xnamedrange.cxx
+++ b/test/source/sheet/xnamedrange.cxx
@@ -38,7 +38,7 @@ void XNamedRange::testGetContent()
uno::Reference< sheet::XNamedRange > xNamedRange = getNamedRange("initial1");
OUString const aExpectedContent("$Sheet1.$B$1");
- CPPUNIT_ASSERT_MESSAGE("Wrong expected content for initial1 on GetContent", xNamedRange->getContent().equals(aExpectedContent));
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 on GetContent", xNamedRange->getContent(), aExpectedContent);
}
void XNamedRange::testSetContent()
@@ -50,19 +50,18 @@ void XNamedRange::testSetContent()
// test a cell
aExpectedContent = "D1";
xNamedRange->setContent(aExpectedContent);
- CPPUNIT_ASSERT_MESSAGE("Wrong expected content for initial1 after SetContent a cell", xNamedRange->getContent().equals(aExpectedContent));
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 after SetContent a cell", xNamedRange->getContent(), aExpectedContent);
// test a cellrange
aExpectedContent = "D1:D10";
xNamedRange->setContent(aExpectedContent);
- CPPUNIT_ASSERT_MESSAGE("Wrong expected content for initial1 after SetContent a cellrange", xNamedRange->getContent().equals(aExpectedContent));
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 after SetContent a cellrange", xNamedRange->getContent(), aExpectedContent);
// test a formula
aExpectedContent = "=D10";
xNamedRange->setContent(aExpectedContent);
aExpectedContent = "D10";
- CPPUNIT_ASSERT_MESSAGE("Wrong expected content for initial1 after SetContent a formula", xNamedRange->getContent().equals(aExpectedContent));
-
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 after SetContent a formula", xNamedRange->getContent(), aExpectedContent);
}
void XNamedRange::testGetType()