1 /******************************************************************** 2 * COPYRIGHT: 3 * Copyright (c) 1997-2009, International Business Machines Corporation and 4 * others. All Rights Reserved. 5 ********************************************************************/ 6 7 #ifndef _INTLTESTDATEFORMATAPI 8 #define _INTLTESTDATEFORMATAPI 9 10 #include "unicode/utypes.h" 11 12 #if !UCONFIG_NO_FORMATTING 13 14 #include "intltest.h" 15 16 17 /* 18 * This is an API test, not a unit test. It doesn't test very many cases, and doesn't 19 * try to test the full functionality. It just calls each function in the class and 20 * verifies that it works on a basic level. 21 */ 22 class IntlTestDateFormatAPI: public IntlTest { 23 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); 24 25 private: 26 /** 27 * Tests basic functionality of various generic API methods in DateFormat 28 */ 29 void testAPI(/* char* par */); 30 /** 31 * Test that the equals method works correctly. 32 */ 33 void TestEquals(void); 34 35 /** 36 * Test that no parse or format methods are hidden. 37 */ 38 void TestNameHiding(void); 39 40 /** 41 * Add better code coverage. 42 */ 43 void TestCoverage(void); 44 }; 45 46 #endif /* #if !UCONFIG_NO_FORMATTING */ 47 48 #endif 49