From 9d6134508405a403612a3463bae3fadcceec9245 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 23 Jul 2023 14:20:29 +0300 Subject: CppunitTest_i18npool_characterclassification: use CPPUNIT_TEST_FIXTURE() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6cc87255af385116b7e86ceaea67b26ca1f44709 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154806 Tested-by: Jenkins Reviewed-by: خالد حسني --- i18npool/qa/cppunit/test_characterclassification.cxx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'i18npool') diff --git a/i18npool/qa/cppunit/test_characterclassification.cxx b/i18npool/qa/cppunit/test_characterclassification.cxx index 846477d615f1..7a66b0db361b 100644 --- a/i18npool/qa/cppunit/test_characterclassification.cxx +++ b/i18npool/qa/cppunit/test_characterclassification.cxx @@ -19,21 +19,14 @@ public: virtual void setUp() override; virtual void tearDown() override; - void testTitleCase(); - void testStringType(); - - CPPUNIT_TEST_SUITE(TestCharacterClassification); - CPPUNIT_TEST(testTitleCase); - CPPUNIT_TEST(testStringType); - CPPUNIT_TEST_SUITE_END(); -private: +protected: uno::Reference m_xCC; }; //A test to ensure that our Title Case functionality is working //http://lists.freedesktop.org/archives/libreoffice/2012-June/032767.html //https://bz.apache.org/ooo/show_bug.cgi?id=30863 -void TestCharacterClassification::testTitleCase() +CPPUNIT_TEST_FIXTURE(TestCharacterClassification, testTitleCase) { lang::Locale aLocale; aLocale.Language = "en"; @@ -66,7 +59,7 @@ void TestCharacterClassification::testTitleCase() } //https://bugs.libreoffice.org/show_bug.cgi?id=69641 -void TestCharacterClassification::testStringType() +CPPUNIT_TEST_FIXTURE(TestCharacterClassification, testStringType) { lang::Locale aLocale; aLocale.Language = "en"; @@ -100,8 +93,6 @@ void TestCharacterClassification::tearDown() m_xCC.clear(); } -CPPUNIT_TEST_SUITE_REGISTRATION(TestCharacterClassification); - CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit