1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2003, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
9 #ifndef RESOURCEBUNDLETEST_H
10 #define RESOURCEBUNDLETEST_H
15 * Tests for class ResourceBundle
17 class ResourceBundleTest
: public IntlTest
{
20 virtual ~ResourceBundleTest();
22 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
25 * Perform several extensive tests using the subtest routine testTag
27 void TestResourceBundles(void);
29 * Test construction of ResourceBundle accessing a custom test resource-file
31 void TestConstruction(void);
33 void TestExemplar(void);
35 void TestGetSize(void);
36 void TestGetLocaleByType(void);
40 * The assignment operator has no real implementation.
41 * It is provided to make the compiler happy. Do not call.
43 ResourceBundleTest
& operator=(const ResourceBundleTest
&) { return *this; }
46 * extensive subtests called by TestResourceBundles
48 UBool
testTag(const char* frag
, UBool in_Root
, UBool in_te
, UBool in_te_IN
);
50 void record_pass(UnicodeString passMessage
);
51 void record_fail(UnicodeString errMessage
);