xref: /haiku/src/tests/kits/translation/TranslatorRosterTest.h (revision 606a8f7d9ccdc03a905e137de30ee5b83677ff48)
152a38012Sejakowatz /*****************************************************************************/
252a38012Sejakowatz // OpenBeOS Translation Kit Test
352a38012Sejakowatz //
452a38012Sejakowatz // Version: 0.1.0
552a38012Sejakowatz //
652a38012Sejakowatz // This is the Test application for BTranslatorRoster
752a38012Sejakowatz //
852a38012Sejakowatz //
952a38012Sejakowatz // This application and all source files used in its construction, except
1052a38012Sejakowatz // where noted, are licensed under the MIT License, and have been written
1152a38012Sejakowatz // and are:
1252a38012Sejakowatz //
1352a38012Sejakowatz // Copyright (c) 2002 OpenBeOS Project
1452a38012Sejakowatz //
1552a38012Sejakowatz // Permission is hereby granted, free of charge, to any person obtaining a
1652a38012Sejakowatz // copy of this software and associated documentation files (the "Software"),
1752a38012Sejakowatz // to deal in the Software without restriction, including without limitation
1852a38012Sejakowatz // the rights to use, copy, modify, merge, publish, distribute, sublicense,
1952a38012Sejakowatz // and/or sell copies of the Software, and to permit persons to whom the
2052a38012Sejakowatz // Software is furnished to do so, subject to the following conditions:
2152a38012Sejakowatz //
2252a38012Sejakowatz // The above copyright notice and this permission notice shall be included
2352a38012Sejakowatz // in all copies or substantial portions of the Software.
2452a38012Sejakowatz //
2552a38012Sejakowatz // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2652a38012Sejakowatz // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2752a38012Sejakowatz // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2852a38012Sejakowatz // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2952a38012Sejakowatz // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
3052a38012Sejakowatz // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
3152a38012Sejakowatz // DEALINGS IN THE SOFTWARE.
3252a38012Sejakowatz /*****************************************************************************/
3352a38012Sejakowatz #ifndef __TRANSLATOR_ROSTER_TEST
3452a38012Sejakowatz #define __TRANSLATOR_ROSTER_TEST
3552a38012Sejakowatz 
36*606a8f7dSmatzon /** CppUnit support */
37*606a8f7dSmatzon #include <TestCase.h>
3852a38012Sejakowatz #include <TranslatorRoster.h>
3952a38012Sejakowatz 
40*606a8f7dSmatzon class TranslatorRosterTest : public BTestCase {
4152a38012Sejakowatz public:
42*606a8f7dSmatzon 	TranslatorRosterTest(std::string name = "");
4352a38012Sejakowatz     ~TranslatorRosterTest();
4452a38012Sejakowatz 
45*606a8f7dSmatzon 	/* cppunit suite function prototype */
46*606a8f7dSmatzon     static CppUnit::Test* Suite();
4752a38012Sejakowatz 
48*606a8f7dSmatzon     /* actual tests */
49*606a8f7dSmatzon     void InitializeTest();
50*606a8f7dSmatzon 	void ConstructorTest();
51*606a8f7dSmatzon 	void DefaultTest();
52*606a8f7dSmatzon 	void InstantiateTest();
53*606a8f7dSmatzon 	void VersionTest();
54*606a8f7dSmatzon 	void AddTranslatorsTest();
55*606a8f7dSmatzon 	void ArchiveTest();
56*606a8f7dSmatzon 	void GetAllTranslatorsTest();
57*606a8f7dSmatzon 	void GetConfigurationMessageTest();
58*606a8f7dSmatzon 	void GetInputFormatsTest();
59*606a8f7dSmatzon 	void GetOutputFormatsTest();
60*606a8f7dSmatzon 	void GetTranslatorInfoTest();
61*606a8f7dSmatzon 	void GetTranslatorsTest();
62*606a8f7dSmatzon 	void IdentifyTest();
63*606a8f7dSmatzon 	void MakeConfigurationViewTest();
64*606a8f7dSmatzon 	void TranslateTest();
6552a38012Sejakowatz private:
6652a38012Sejakowatz 	/** default roster used when performing tests */
6752a38012Sejakowatz     BTranslatorRoster* roster;
6852a38012Sejakowatz };
6952a38012Sejakowatz #endif