summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-07-23 14:20:29 +0300
committerخالد حسني <khaled@libreoffice.org>2023-07-24 07:35:22 +0200
commit9d6134508405a403612a3463bae3fadcceec9245 (patch)
tree16554e39e44f81d7acc93fb0bc69ef5fb31bc1ab /i18npool
parent94caaf5c9e2917a3202cf515d61eaa9399b2c2b5 (diff)
CppunitTest_i18npool_characterclassification: use CPPUNIT_TEST_FIXTURE()
Change-Id: I6cc87255af385116b7e86ceaea67b26ca1f44709 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154806 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/qa/cppunit/test_characterclassification.cxx15
1 files changed, 3 insertions, 12 deletions
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<i18n::XCharacterClassification> 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: */