gssettingsuis/Gs/tsrc/public/basic/GSListBox/T_GSListBox.cpp
branchRCL_3
changeset 25 7e0eff37aedb
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 //  CLASS HEADER
       
    20 #include "T_GSListBox.h"
       
    21 
       
    22 //  EXTERNAL INCLUDES
       
    23 #include <EUnitMacros.h>
       
    24 #include <EUnitDecorators.h>
       
    25 #include <e32base.h>
       
    26 #include <barsread.h> //TResourceReader
       
    27 #include <coemain.h>
       
    28 #include <AknRadioButtonSettingPage.h>
       
    29 #include <gsnetworkpluginrsc.rsg>           //for resource IDs
       
    30 
       
    31 
       
    32 //  INTERNAL INCLUDES
       
    33 //#include "ListBox.cpp"
       
    34 
       
    35 // CONSTANTS
       
    36 _LIT( KGSTestCaption, "Test caption" );
       
    37 const TInt KGSTestLocalFeatureId = 0;
       
    38 
       
    39 // CONSTRUCTION
       
    40 T_GSListBox* T_GSListBox::NewL()
       
    41     {
       
    42     T_GSListBox* self = T_GSListBox::NewLC();
       
    43     CleanupStack::Pop();
       
    44 
       
    45     return self;
       
    46     }
       
    47 
       
    48 T_GSListBox* T_GSListBox::NewLC()
       
    49     {
       
    50     T_GSListBox* self = new( ELeave ) T_GSListBox();
       
    51     CleanupStack::PushL( self );
       
    52 
       
    53     self->ConstructL();
       
    54 
       
    55     return self;
       
    56     }
       
    57 
       
    58 // Destructor (virtual by CBase)
       
    59 T_GSListBox::~T_GSListBox()
       
    60     {
       
    61     }
       
    62 
       
    63 // Default constructor
       
    64 T_GSListBox::T_GSListBox()
       
    65     {
       
    66     }
       
    67 
       
    68 // Second phase construct
       
    69 void T_GSListBox::ConstructL()
       
    70     {
       
    71     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
       
    72     // It generates the test case table.
       
    73     CEUnitTestSuiteClass::ConstructL();
       
    74     }
       
    75 
       
    76 //  METHODS
       
    77 
       
    78 
       
    79 void T_GSListBox::SetupL(  )
       
    80     {
       
    81     
       
    82     }
       
    83 
       
    84 void T_GSListBox::SetupResourceL()
       
    85     {
       
    86 	iOffset = CCoeEnv::Static()->AddResourceFileL( _L("Z:\\resource\\GSNetworkPluginRsc.rsc") ); 
       
    87     }
       
    88 
       
    89 
       
    90 void T_GSListBox::Teardown(  )
       
    91     {
       
    92     if( iListboxEntry )
       
    93         {
       
    94         delete iListboxEntry;
       
    95         iListboxEntry = NULL;
       
    96         }
       
    97     if( iItemTextArray )
       
    98         {
       
    99         delete iItemTextArray;
       
   100         iItemTextArray = NULL;
       
   101         }
       
   102     if( iRBSPArray )
       
   103         {
       
   104         delete iRBSPArray;
       
   105         iRBSPArray = NULL;
       
   106         }
       
   107         
       
   108     if ( iLBITextArray )
       
   109     	{
       
   110     	delete iLBITextArray;
       
   111     	iLBITextArray = NULL;
       
   112     	}
       
   113         
       
   114 	if ( iOffset )
       
   115 		{
       
   116 		CCoeEnv::Static()->DeleteResourceFile( iOffset );
       
   117 		iOffset = 0;		
       
   118 		}
       
   119     }
       
   120 
       
   121 // CGSListboxEntry test cases
       
   122 
       
   123 void T_GSListBox::SetupListBoxEntryL()
       
   124     {
       
   125     SetupResourceL();
       
   126 
       
   127     TResourceReader resReader;
       
   128     CCoeEnv::Static()->CreateResourceReaderLC( resReader, R_NETSL_NETSELECTMODE_LBX );
       
   129     // Just read, not actually needed anywhere
       
   130     resReader.ReadInt16();
       
   131     
       
   132     iListboxEntry = CGSListboxEntry::NewLC( resReader );
       
   133     EUNIT_ASSERT( iListboxEntry != NULL );
       
   134     CleanupStack::Pop( iListboxEntry );
       
   135     
       
   136     CleanupStack::PopAndDestroy();
       
   137     }
       
   138 
       
   139 void T_GSListBox::T_Global_GSListBox_NewLC()
       
   140     {
       
   141     TResourceReader resReader;
       
   142     CCoeEnv::Static()->CreateResourceReaderLC( resReader, R_NETSL_NETSELECTMODE_LBX );
       
   143     // Just read, not actually needed anywhere
       
   144     resReader.ReadInt16();
       
   145     
       
   146     iListboxEntry = CGSListboxEntry::NewLC( resReader );
       
   147     EUNIT_ASSERT( iListboxEntry != NULL );
       
   148     CleanupStack::Pop( iListboxEntry );
       
   149     
       
   150     CleanupStack::PopAndDestroy();
       
   151     }
       
   152 
       
   153 void T_GSListBox::T_Global_GSListBox_New2LC()
       
   154     {
       
   155     TInt localFeatureId = 0;
       
   156     iListboxEntry = CGSListboxEntry::NewLC( localFeatureId );
       
   157     EUNIT_ASSERT( iListboxEntry != NULL );
       
   158     CleanupStack::Pop();
       
   159     }
       
   160 
       
   161 void T_GSListBox::T_Global_GSListBox_New3LC()
       
   162     {
       
   163     TInt localFeatureId = 0;
       
   164     TUint32 resourceId = R_NETSL_NETSELECTMODE_LBX;
       
   165     iListboxEntry = CGSListboxEntry::NewLC( resourceId, *CCoeEnv::Static(), localFeatureId );
       
   166     EUNIT_ASSERT( iListboxEntry != NULL );
       
   167     CleanupStack::Pop();
       
   168     }
       
   169 
       
   170 void T_GSListBox::T_Global_GSListBox_FeatureIdL()
       
   171     {
       
   172     TInt localFeatureId;
       
   173     EUNIT_ASSERT_NO_LEAVE( localFeatureId = iListboxEntry->FeatureId() );
       
   174     }
       
   175 
       
   176 void T_GSListBox::T_Global_GSListBox_TypeL()
       
   177     {
       
   178     TInt type;
       
   179     EUNIT_ASSERT_NO_LEAVE( type = iListboxEntry->Type() );
       
   180     }
       
   181 
       
   182 void T_GSListBox::T_Global_GSListBox_CaptionL()
       
   183     {
       
   184     //Here we can add comparision of the returned string to the
       
   185     //previously saved one
       
   186     EUNIT_ASSERT_NO_LEAVE( iListboxEntry->Caption() );
       
   187     }
       
   188 
       
   189 void T_GSListBox::T_Global_GSListBox_SetDynamicTextL()
       
   190     {
       
   191     EUNIT_ASSERT_NO_LEAVE( iListboxEntry->SetDynamicTextL( KGSTestCaption ) );
       
   192     }
       
   193 
       
   194 void T_GSListBox::T_Global_GSListBox_SetDynamicTextDoublePaneL()
       
   195     {
       
   196     EUNIT_ASSERT_NO_LEAVE( iListboxEntry->SetDynamicTextDoublePaneL( KGSTestCaption ) );
       
   197     }
       
   198 
       
   199 
       
   200 // CGSItemTextArray test cases
       
   201 
       
   202 void T_GSListBox::SetupGSItemTextArrayL()
       
   203     {
       
   204     SetupResourceL();
       
   205     iItemTextArray = 
       
   206             CGSItemTextArray::NewL( R_NETSL_NETSELECTMODE_LBX, *CCoeEnv::Static() );
       
   207     }
       
   208 
       
   209 void T_GSListBox::T_Global_GSItemTextArray_SetupL()
       
   210     {
       
   211     EUNIT_ASSERT_NO_LEAVE( iItemTextArray = 
       
   212         CGSItemTextArray::NewL( R_NETSL_NETSELECTMODE_LBX, *CCoeEnv::Static() ) ); 
       
   213     }
       
   214 
       
   215 void T_GSListBox::T_Global_GSItemTextArray_MdcaCountL()
       
   216     {
       
   217     TInt itemCount = 0;
       
   218     EUNIT_ASSERT_NO_LEAVE( itemCount = iItemTextArray->MdcaCount() ); 
       
   219     }
       
   220 
       
   221 void T_GSListBox::T_Global_GSItemTextArray_MdcaPointL()
       
   222     {
       
   223     TInt itemIndex = 0;
       
   224     EUNIT_ASSERT_NO_LEAVE( iItemTextArray->MdcaPoint( itemIndex ) ); 
       
   225     }
       
   226 
       
   227 void T_GSListBox::T_Global_GSItemTextArray_SetDynamicTextL()
       
   228     {
       
   229     TInt featureId = 1;
       
   230     EUNIT_ASSERT_NO_LEAVE( iItemTextArray->SetDynamicTextL( 
       
   231             featureId, KGSTestCaption ) ); 
       
   232     }
       
   233 
       
   234 void T_GSListBox::T_Global_GSItemTextArray_SetDynamicTextDoublePaneL()
       
   235     {
       
   236     TInt featureId = 1;
       
   237     EUNIT_ASSERT_NO_LEAVE( iItemTextArray->SetDynamicTextDoublePaneL( 
       
   238             featureId, KGSTestCaption ) ); 
       
   239     }
       
   240 
       
   241 void T_GSListBox::T_Global_GSItemTextArray_SetItemVisibilityL()
       
   242     {
       
   243     TInt featureId = 1;
       
   244     CGSItemTextArray::TVisibility itemVisibility = CGSItemTextArray::EVisible;
       
   245     EUNIT_ASSERT_NO_LEAVE( iItemTextArray->SetItemVisibilityL( 
       
   246             featureId, itemVisibility ) ); 
       
   247     }
       
   248     
       
   249 void T_GSListBox::T_Global_GSItemTextArray_CurrentFeatureL()
       
   250     {
       
   251     EUNIT_ASSERT_NO_LEAVE( iItemTextArray->CurrentFeature() ); 
       
   252     }
       
   253 
       
   254 void T_GSListBox::T_Global_GSItemTextArray_IndexForFeatureIdL()
       
   255     {
       
   256     TInt featureId = 4;
       
   257     EUNIT_ASSERT_NO_LEAVE( iItemTextArray->IndexForFeatureIdL( 
       
   258             featureId ) ); 
       
   259     }
       
   260 
       
   261 void T_GSListBox::T_Global_GSItemTextArray_FeatureIdByIndexL()
       
   262     {
       
   263     TInt itemIndex = 5;
       
   264     EUNIT_ASSERT_NO_LEAVE( iItemTextArray->FeatureIdByIndex( 
       
   265             itemIndex ) ); 
       
   266     }
       
   267 
       
   268 void T_GSListBox::T_Global_GSItemTextArray_FeatureByIdL()
       
   269     {
       
   270     TInt featureId = 6;
       
   271     EUNIT_ASSERT_NO_LEAVE( iItemTextArray->FeatureByIdL( 
       
   272             featureId ) ); 
       
   273     }
       
   274 
       
   275 void T_GSListBox::T_Global_GSItemTextArray_GetItemCaptionFromFeatureIdLC()
       
   276     {
       
   277     TInt featureId = 6;
       
   278     HBufC* itemCaption;
       
   279     itemCaption = CGSItemTextArray::GetItemCaptionFromFeatureIdLC( 
       
   280             R_NETSL_NETSELECTMODE_LBX, featureId, *CCoeEnv::Static() );
       
   281     CleanupStack::PopAndDestroy();
       
   282     }
       
   283 
       
   284 
       
   285 // CGSRadioButtonSettingPageItemTextArray test cases
       
   286 
       
   287 void T_GSListBox::T_Global_GSRBSPItemTextArray_NewL()
       
   288     {
       
   289     CGSRadioButtonSettingPageItemTextArray* itemArray = 
       
   290         CGSRadioButtonSettingPageItemTextArray::NewL( R_NETSL_NETSELECTMODE_LBX, *CCoeEnv::Static(), NULL );
       
   291     CleanupStack::PushL( itemArray );
       
   292     EUNIT_ASSERT( itemArray );
       
   293     CleanupStack::PopAndDestroy();
       
   294     }
       
   295 
       
   296 void T_GSListBox::Setup_GSRBSPItemTextArrayL()
       
   297     {
       
   298     SetupResourceL();
       
   299     
       
   300     iRBSPArray = CGSRadioButtonSettingPageItemTextArray::NewL( R_NETSL_NETSELECTMODE_LBX, 
       
   301                 *CCoeEnv::Static(), NULL );
       
   302     }
       
   303 
       
   304 void T_GSListBox::T_Global_GSRBSPItemTextArray_CurrentFeatureL()
       
   305     {
       
   306     EUNIT_ASSERT_PANIC( iRBSPArray->CurrentFeature(), "GSEngItemArray", 0 );
       
   307     }
       
   308 
       
   309 void T_GSListBox::T_Global_GSRBSPItemTextArray_SetRadioButtonSettingPageL()
       
   310     {
       
   311     TUint32 resId = 1;
       
   312     TInt currentItem = 0;
       
   313     CAknRadioButtonSettingPage* dlg = new (ELeave ) CAknRadioButtonSettingPage(
       
   314                                           resId, 
       
   315                                           currentItem, iItemTextArray );
       
   316     CleanupStack::PushL( dlg );
       
   317     EUNIT_ASSERT_NO_LEAVE( iRBSPArray->SetRadioButtonSettingPage( *dlg ) );
       
   318     CleanupStack::PopAndDestroy();
       
   319     }
       
   320 
       
   321 
       
   322 // CGSListBoxItemTextArray test cases
       
   323 
       
   324 void T_GSListBox::Setup_CGSLBITextArrayL()
       
   325     {
       
   326     SetupResourceL();
       
   327     TUint32 resId = R_NETSL_NETSELECTMODE_LBX;
       
   328     iLBITextArray = CGSListBoxItemTextArray::NewL( 
       
   329             resId, *iListBox, *CCoeEnv::Static() );
       
   330     }
       
   331 
       
   332 void T_GSListBox::T_Global_CGSLBITextArray_NewL()
       
   333     {
       
   334     TUint32 resId = R_NETSL_NETSELECTMODE_LBX;
       
   335     EUNIT_ASSERT_NO_LEAVE( iLBITextArray = CGSListBoxItemTextArray::NewL( 
       
   336                 resId, *iListBox, *CCoeEnv::Static() ) );
       
   337     }
       
   338 
       
   339 void T_GSListBox::T_Global_CGSLBITextArray_New2L()
       
   340     {
       
   341     TUint32 resId = R_NETSL_NETSELECTMODE_LBX;
       
   342     TInt itemCount = 10;
       
   343     EUNIT_ASSERT_NO_LEAVE( iLBITextArray = CGSListBoxItemTextArray::NewL( 
       
   344                 resId, *iListBox, *CCoeEnv::Static(), itemCount ) );
       
   345     }
       
   346 
       
   347 void T_GSListBox::T_Global_CGSLBITextArray_CurrentFeatureL()
       
   348     {
       
   349     TInt currentFeature = 0;
       
   350     EUNIT_ASSERT_NO_LEAVE( currentFeature = iLBITextArray->CurrentFeature() );
       
   351     }
       
   352 
       
   353 
       
   354 //  TEST TABLE
       
   355 EUNIT_BEGIN_TEST_TABLE(
       
   356     T_GSListBox,
       
   357     "Testing GSListBox.dll functionality",
       
   358     "UNIT" )
       
   359 
       
   360 
       
   361 // CGSListboxEntry test cases
       
   362 EUNIT_TEST(
       
   363     "ListBox - NewL construction", //case description
       
   364     "CGSListboxEntry",                   //class being tested
       
   365     "NewLC",                                 //method being tested
       
   366     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   367     SetupResourceL, T_Global_GSListBox_NewLC, Teardown )
       
   368 
       
   369 EUNIT_TEST(
       
   370     "ListBox - NewL overloaded construction", //case description
       
   371     "CGSListboxEntry",                   //class being tested
       
   372     "NewLC",                                 //method being tested
       
   373     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   374     SetupL, T_Global_GSListBox_New2LC, Teardown )
       
   375 
       
   376 EUNIT_TEST(
       
   377     "ListBox - NewL another overloaded construction", //case description
       
   378     "CGSListboxEntry",                   //class being tested
       
   379     "NewLC",                                 //method being tested
       
   380     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   381     SetupResourceL, T_Global_GSListBox_New3LC, Teardown )
       
   382     
       
   383 EUNIT_TEST(
       
   384     "ListBox - FeatureId()", //case description
       
   385     "CGSListboxEntry",                   //class being tested
       
   386     "FeatureId",                                 //method being tested
       
   387     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   388     SetupListBoxEntryL, T_Global_GSListBox_FeatureIdL, Teardown )
       
   389 
       
   390 EUNIT_TEST(
       
   391     "ListBox - Caption()", //case description
       
   392     "CGSListboxEntry",                   //class being tested
       
   393     "Caption",                                 //method being tested
       
   394     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   395     SetupListBoxEntryL, T_Global_GSListBox_CaptionL, Teardown ) 
       
   396     
       
   397 EUNIT_TEST(
       
   398     "ListBox - Type()", //case description
       
   399     "CGSListboxEntry",                   //class being tested
       
   400     "Type",                                 //method being tested
       
   401     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   402     SetupListBoxEntryL, T_Global_GSListBox_TypeL, Teardown )    
       
   403 
       
   404 EUNIT_TEST(
       
   405     "ListBox - SetDynamicTextL()", //case description
       
   406     "CGSListboxEntry",                   //class being tested
       
   407     "SetDynamicTextL",                                 //method being tested
       
   408     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   409     SetupListBoxEntryL, T_Global_GSListBox_SetDynamicTextL, Teardown )
       
   410 
       
   411 EUNIT_TEST(
       
   412     "ListBox - SetDynamicTextDoublePaneL()", //case description
       
   413     "CGSListboxEntry",                   //class being tested
       
   414     "SetDynamicTextDoublePaneL",            //method being tested
       
   415     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   416     SetupListBoxEntryL, T_Global_GSListBox_SetDynamicTextDoublePaneL, Teardown )
       
   417 
       
   418     
       
   419 // CGSItemTextArray test cases    
       
   420 
       
   421 EUNIT_TEST(
       
   422     "CGSItemTextArray - construction()", //case description
       
   423     "CGSItemTextArray",                   //class being tested
       
   424     "NewL",            //method being tested
       
   425     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   426     SetupResourceL, T_Global_GSItemTextArray_SetupL, Teardown )
       
   427     
       
   428 EUNIT_TEST(
       
   429     "CGSItemTextArray - MdcaCount()", //case description
       
   430     "CGSItemTextArray",                   //class being tested
       
   431     "MdcaCount",            //method being tested
       
   432     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   433     SetupGSItemTextArrayL, T_Global_GSItemTextArray_MdcaCountL, Teardown )
       
   434 
       
   435 EUNIT_TEST(
       
   436     "CGSItemTextArray - MdcaPoint()", //case description
       
   437     "CGSItemTextArray",                   //class being tested
       
   438     "MdcaPoint",            //method being tested
       
   439     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   440     SetupGSItemTextArrayL, T_Global_GSItemTextArray_MdcaPointL, Teardown )
       
   441 
       
   442 EUNIT_TEST(
       
   443     "CGSItemTextArray - SetDynamicTextL()", //case description
       
   444     "CGSItemTextArray",                   //class being tested
       
   445     "SetDynamicTextL",            //method being tested
       
   446     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   447     SetupGSItemTextArrayL, T_Global_GSItemTextArray_SetDynamicTextL, Teardown )
       
   448     
       
   449 EUNIT_TEST(
       
   450     "CGSItemTextArray - SetDynamicTextDoublePaneL()", //case description
       
   451     "CGSItemTextArray",                   //class being tested
       
   452     "SetDynamicTextDoublePaneL",            //method being tested
       
   453     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   454     SetupGSItemTextArrayL, T_Global_GSItemTextArray_SetDynamicTextDoublePaneL, Teardown )
       
   455 
       
   456 EUNIT_TEST(
       
   457     "CGSItemTextArray - SetItemVisibilityL()", //case description
       
   458     "CGSItemTextArray",                   //class being tested
       
   459     "SetItemVisibilityL",            //method being tested
       
   460     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   461     SetupGSItemTextArrayL, T_Global_GSItemTextArray_SetItemVisibilityL, Teardown )
       
   462     
       
   463 EUNIT_TEST(
       
   464     "CGSItemTextArray - CurrentFeature()", //case description
       
   465     "CGSItemTextArray",                   //class being tested
       
   466     "CurrentFeature",            //method being tested
       
   467     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   468     SetupGSItemTextArrayL, T_Global_GSItemTextArray_CurrentFeatureL, Teardown )
       
   469         
       
   470 EUNIT_TEST(
       
   471     "CGSItemTextArray - IndexForFeatureIdL()", //case description
       
   472     "CGSItemTextArray",                   //class being tested
       
   473     "IndexForFeatureIdL",            //method being tested
       
   474     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   475     SetupGSItemTextArrayL, T_Global_GSItemTextArray_IndexForFeatureIdL, Teardown )
       
   476 
       
   477 EUNIT_TEST(
       
   478     "CGSItemTextArray - FeatureIdByIndex()", //case description
       
   479     "CGSItemTextArray",                   //class being tested
       
   480     "FeatureIdByIndex",            //method being tested
       
   481     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   482     SetupGSItemTextArrayL, T_Global_GSItemTextArray_FeatureIdByIndexL, Teardown )
       
   483 
       
   484 EUNIT_TEST(
       
   485     "CGSItemTextArray - FeatureByIdL()", //case description
       
   486     "CGSItemTextArray",                   //class being tested
       
   487     "FeatureByIdL",            //method being tested
       
   488     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   489     SetupGSItemTextArrayL, T_Global_GSItemTextArray_FeatureByIdL, Teardown )
       
   490 
       
   491 EUNIT_TEST(
       
   492     "CGSItemTextArray - GetItemCaptionFromFeatureIdLC()", //case description
       
   493     "CGSItemTextArray",                   //class being tested
       
   494     "GetItemCaptionFromFeatureIdLC",            //method being tested
       
   495     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   496     SetupGSItemTextArrayL, T_Global_GSItemTextArray_GetItemCaptionFromFeatureIdLC, Teardown )
       
   497 
       
   498     
       
   499 // CGSRadioButtonSettingPageItemTextArray test cases
       
   500     
       
   501 EUNIT_TEST(
       
   502     "CGSRadioButtonSettingPageItemTextArray - NewL()", //case description
       
   503     "CGSRadioButtonSettingPageItemTextArray",                   //class being tested
       
   504     "NewL",            //method being tested
       
   505     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   506     SetupResourceL, T_Global_GSRBSPItemTextArray_NewL, Teardown )
       
   507 
       
   508 EUNIT_TEST(
       
   509     "CGSRadioButtonSettingPageItemTextArray - CurrentFeatureL()", //case description
       
   510     "CGSRadioButtonSettingPageItemTextArray",                   //class being tested
       
   511     "CurrentFeatureL",            //method being tested
       
   512     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   513     Setup_GSRBSPItemTextArrayL, T_Global_GSRBSPItemTextArray_CurrentFeatureL, Teardown )
       
   514 
       
   515 EUNIT_TEST(
       
   516     "CGSRadioButtonSettingPageItemTextArray - SetRadioButtonSettingPageL()", //case description
       
   517     "CGSRadioButtonSettingPageItemTextArray",                   //class being tested
       
   518     "SetRadioButtonSettingPageL",            //method being tested
       
   519     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   520     Setup_GSRBSPItemTextArrayL, T_Global_GSRBSPItemTextArray_SetRadioButtonSettingPageL, Teardown )
       
   521     
       
   522     
       
   523 // CGSListBoxItemTextArray test cases
       
   524     
       
   525 EUNIT_TEST(
       
   526     "CGSListBoxItemTextArray - NewL()", //case description
       
   527     "CGSListBoxItemTextArray",                   //class being tested
       
   528     "NewL",            //method being tested
       
   529     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   530     SetupResourceL, T_Global_CGSLBITextArray_NewL, Teardown )
       
   531     
       
   532 EUNIT_TEST(
       
   533     "CGSListBoxItemTextArray - another NewL()", //case description
       
   534     "CGSListBoxItemTextArray",                   //class being tested
       
   535     "overloaded NewL",            //method being tested
       
   536     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   537     SetupResourceL, T_Global_CGSLBITextArray_New2L, Teardown )
       
   538     
       
   539 EUNIT_TEST(
       
   540     "CGSListBoxItemTextArray - CurrentFeature()", //case description
       
   541     "CGSListBoxItemTextArray",                   //class being tested
       
   542     "CurrentFeature",            //method being tested
       
   543     "FUNCTIONALITY",                        //FUNCTIONALITY, BOUNDARY, ERRORHANDLING
       
   544     Setup_CGSLBITextArrayL, T_Global_CGSLBITextArray_CurrentFeatureL, Teardown )
       
   545     
       
   546 EUNIT_END_TEST_TABLE
       
   547 
       
   548 //  END OF FILE