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 /framework/qa | |
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 'framework/qa')
-rw-r--r-- | framework/qa/cppunit/dispatchtest.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/framework/qa/cppunit/dispatchtest.cxx b/framework/qa/cppunit/dispatchtest.cxx index 5a1b79207046..586c4af3b9b0 100644 --- a/framework/qa/cppunit/dispatchtest.cxx +++ b/framework/qa/cppunit/dispatchtest.cxx @@ -181,7 +181,6 @@ void DispatchTest::dispatchCommand(const uno::Reference<lang::XComponent>& xComp CPPUNIT_TEST_FIXTURE(DispatchTest, testInterception) { mxComponent = loadFromDesktop("private:factory/swriter", "com.sun.star.text.TextDocument"); - CPPUNIT_ASSERT(mxComponent.is()); uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY); CPPUNIT_ASSERT(xModel.is()); |