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