1 // Copyright (C) 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 NEW_RESOURCEBUNDLETEST_H
10 #define NEW_RESOURCEBUNDLETEST_H
15 * Tests for class ResourceBundle
17 class NewResourceBundleTest: public IntlTest {
19 NewResourceBundleTest();
20 virtual ~NewResourceBundleTest();
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 TestIteration(void);
35 void TestOtherAPI(void);
37 void TestNewTypes(void);
39 void TestGetByFallback(void);
43 * The assignment operator has no real implementation.
44 * It is provided to make the compiler happy. Do not call.
46 NewResourceBundleTest& operator=(const NewResourceBundleTest&) { return *this; }
49 * extensive subtests called by TestResourceBundles
51 UBool testTag(const char* frag, UBool in_Root, UBool in_te, UBool in_te_IN);
53 void record_pass(void);
54 void record_fail(void);