[Libreoffice-commits] online.git: loolwsd/test

Henry Castro hcastro at collabora.com
Tue Apr 12 18:08:44 UTC 2016


 loolwsd/test/httpwstest.cpp |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

New commits:
commit c7abd16399bbf7a7ff4460d58c0529ad955359a1
Author: Henry Castro <hcastro at collabora.com>
Date:   Tue Apr 12 13:55:14 2016 -0400

    loolwsd: replace CPPUNIT_ASSERT_MESSAGE -> CPPUNIT_FAIL

diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index 794a031..f8b2c8c 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -168,7 +168,7 @@ void HTTPWSTest::testLoad()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -220,7 +220,7 @@ void HTTPWSTest::testBadLoad()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -260,7 +260,7 @@ void HTTPWSTest::testSaveOnDisconnect()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 
     try
@@ -311,7 +311,7 @@ void HTTPWSTest::testSaveOnDisconnect()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -364,7 +364,7 @@ void HTTPWSTest::testExcelLoad()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -424,7 +424,7 @@ void HTTPWSTest::testPaste()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -481,7 +481,7 @@ void HTTPWSTest::testLargePaste()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -541,7 +541,7 @@ void HTTPWSTest::testRenderingOptions()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -582,7 +582,7 @@ void HTTPWSTest::testPasswordProtectedDocumentWithoutPassword()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -623,7 +623,7 @@ void HTTPWSTest::testPasswordProtectedDocumentWithWrongPassword()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -651,7 +651,7 @@ void HTTPWSTest::testPasswordProtectedDocumentWithCorrectPassword()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 
@@ -759,7 +759,7 @@ void HTTPWSTest::testImpressPartCountChanged()
     }
     catch (const Poco::Exception& exc)
     {
-        CPPUNIT_ASSERT_MESSAGE(exc.displayText(), false);
+        CPPUNIT_FAIL(exc.displayText());
     }
 }
 


More information about the Libreoffice-commits mailing list