From 73ef2f6f615b88ef25366f9073c5fb3db5e76687 Mon Sep 17 00:00:00 2001 From: pragat-pandya Date: Sun, 6 Feb 2022 16:50:05 +0530 Subject: tdf#139734 removing redundant asserts after MacrosTest::loadFromDesktop Change-Id: I89ffa387464ce7cc43c1884b031d6fade5b85078 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129581 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sccomp/qa/unit/SwarmSolverTest.cxx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'sccomp') diff --git a/sccomp/qa/unit/SwarmSolverTest.cxx b/sccomp/qa/unit/SwarmSolverTest.cxx index 030822b9cdb4..966f9c673fc5 100644 --- a/sccomp/qa/unit/SwarmSolverTest.cxx +++ b/sccomp/qa/unit/SwarmSolverTest.cxx @@ -60,8 +60,6 @@ void SwarmSolverTest::testUnconstrained() createFileURL(u"Simple.ods", aFileURL); mxComponent = loadFromDesktop(aFileURL); - CPPUNIT_ASSERT_MESSAGE("Component not loaded", mxComponent.is()); - uno::Reference xDocument(mxComponent, uno::UNO_QUERY_THROW); uno::Reference xIndex(xDocument->getSheets(), uno::UNO_QUERY_THROW); uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); @@ -109,8 +107,6 @@ void SwarmSolverTest::testVariableBounded() createFileURL(u"Simple.ods", aFileURL); mxComponent = loadFromDesktop(aFileURL); - CPPUNIT_ASSERT_MESSAGE("Component not loaded", mxComponent.is()); - uno::Reference xDocument(mxComponent, uno::UNO_QUERY_THROW); uno::Reference xIndex(xDocument->getSheets(), uno::UNO_QUERY_THROW); uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); @@ -160,8 +156,6 @@ void SwarmSolverTest::testVariableConstrained() createFileURL(u"Simple.ods", aFileURL); mxComponent = loadFromDesktop(aFileURL); - CPPUNIT_ASSERT_MESSAGE("Component not loaded", mxComponent.is()); - uno::Reference xDocument(mxComponent, uno::UNO_QUERY_THROW); uno::Reference xIndex(xDocument->getSheets(), uno::UNO_QUERY_THROW); uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); @@ -214,8 +208,6 @@ void SwarmSolverTest::testTwoVariables() createFileURL(u"TwoVariables.ods", aFileURL); mxComponent = loadFromDesktop(aFileURL); - CPPUNIT_ASSERT_MESSAGE("Component not loaded", mxComponent.is()); - uno::Reference xDocument(mxComponent, uno::UNO_QUERY_THROW); uno::Reference xIndex(xDocument->getSheets(), uno::UNO_QUERY_THROW); uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); @@ -272,8 +264,6 @@ void SwarmSolverTest::testMultipleVariables() createFileURL(u"MultiVariable.ods", aFileURL); mxComponent = loadFromDesktop(aFileURL); - CPPUNIT_ASSERT_MESSAGE("Component not loaded", mxComponent.is()); - uno::Reference xDocument(mxComponent, uno::UNO_QUERY_THROW); uno::Reference xIndex(xDocument->getSheets(), uno::UNO_QUERY_THROW); uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); -- cgit