xref: /haiku/src/tests/kits/translation/TranslatorRosterTest.h (revision f2ced752a08ff5d2618826bcd3ae3976c9f3e92e)
1 /*****************************************************************************/
2 // OpenBeOS Translation Kit Test
3 //
4 // Version: 0.1.0
5 //
6 // This is the Test application for BTranslatorRoster
7 //
8 //
9 // This application and all source files used in its construction, except
10 // where noted, are licensed under the MIT License, and have been written
11 // and are:
12 //
13 // Copyright (c) 2002 OpenBeOS Project
14 //
15 // Permission is hereby granted, free of charge, to any person obtaining a
16 // copy of this software and associated documentation files (the "Software"),
17 // to deal in the Software without restriction, including without limitation
18 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 // and/or sell copies of the Software, and to permit persons to whom the
20 // Software is furnished to do so, subject to the following conditions:
21 //
22 // The above copyright notice and this permission notice shall be included
23 // in all copies or substantial portions of the Software.
24 //
25 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
26 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
28 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
30 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
31 // DEALINGS IN THE SOFTWARE.
32 /*****************************************************************************/
33 #ifndef __TRANSLATOR_ROSTER_TEST
34 #define __TRANSLATOR_ROSTER_TEST
35 
36 /** CppUnit support */
37 #include <TestCase.h>
38 #include <TranslatorRoster.h>
39 
40 class TranslatorRosterTest : public BTestCase {
41 public:
42 	TranslatorRosterTest(std::string name = "");
43     ~TranslatorRosterTest();
44 
45 	/* cppunit suite function prototype */
46     static CppUnit::Test* Suite();
47 
48     /* actual tests */
49     void InitializeTest();
50 	void ConstructorTest();
51 	void DefaultTest();
52 	void InstantiateTest();
53 	void VersionTest();
54 	void AddTranslatorsTest();
55 	void ArchiveTest();
56 	void GetAllTranslatorsTest();
57 	void GetConfigurationMessageTest();
58 	void GetInputFormatsTest();
59 	void GetOutputFormatsTest();
60 	void GetTranslatorInfoTest();
61 	void GetTranslatorsTest();
62 	void IdentifyTest();
63 	void MakeConfigurationViewTest();
64 	void TranslateTest();
65 };
66 #endif
67