diff options
author | Moaz <moaz.eldefrawy@gmail.com> | 2021-02-21 20:22:40 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-02-25 07:50:29 +0100 |
commit | a9a350c13d8fb454c3f1db7ca6a7f10c1e7a19bb (patch) | |
tree | c3115fa9b7018eb6629cdaf607ef4a49adb147dc /dbaccess/qa/unit | |
parent | befc0c2b0e0b3bf293a2446d71e38717ed53985b (diff) |
tdf#139734 Remove redundant asserts after MacrosTest::loadFromDesktop
MacrosTest::loadFromDesktop itself asserts on its return value.
Thus, the additional checks in unit tests are redundant, and only create
noise unrelated to the tested functionality.
Change-Id: If616001b296afdde38f5a23ececee3d44b4a395d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111290
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'dbaccess/qa/unit')
-rw-r--r-- | dbaccess/qa/unit/dbtest_base.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/dbaccess/qa/unit/dbtest_base.cxx b/dbaccess/qa/unit/dbtest_base.cxx index caee25fa70ac..c7992288cdbd 100644 --- a/dbaccess/qa/unit/dbtest_base.cxx +++ b/dbaccess/qa/unit/dbtest_base.cxx @@ -67,8 +67,6 @@ uno::Reference< XOfficeDatabaseDocument > uno::Reference<XOfficeDatabaseDocument> DBTestBase::getDocumentForUrl(OUString const & url) { uno::Reference< lang::XComponent > xComponent (loadFromDesktop(url)); - CPPUNIT_ASSERT(xComponent.is()); - uno::Reference< XOfficeDatabaseDocument > xDocument(xComponent, UNO_QUERY); CPPUNIT_ASSERT(xDocument.is()); |