controlpanelui/src/cpprofilewrapper/tsrc/ut_cpprofilemodel/src/ut_cpprofilemodel.cpp
changeset 42 3487b2ea501a
parent 37 cb294e641644
equal deleted inserted replaced
39:5aa7c7ec6b8e 42:3487b2ea501a
    77         <2> profileId = EProfileWrapperMeetingId,\n
    77         <2> profileId = EProfileWrapperMeetingId,\n
    78      4. Expected result: \n&nbsp;&nbsp;\n &nbsp;&nbsp;
    78      4. Expected result: \n&nbsp;&nbsp;\n &nbsp;&nbsp;
    79         <1> return QString( "General" ) \n &nbsp;&nbsp;
    79         <1> return QString( "General" ) \n &nbsp;&nbsp;
    80         <2> return QString( "Meeting" ) \n
    80         <2> return QString( "Meeting" ) \n
    81  */
    81  */
    82 void TestCpProfileModel::testProfileNameWithValidProfileID()
    82 /*void TestCpProfileModel::testProfileNameWithValidProfileID()
    83 {
    83 {
    84     CpProfileModel *profileModel = new CpProfileModel();
    84     CpProfileModel *profileModel = new CpProfileModel();
    85     
    85     
    86     QString profileName1 = profileModel->profileName(EProfileWrapperGeneralId);
    86     QString profileName1 = profileModel->profileName(EProfileWrapperGeneralId);
    87     QVERIFY( profileName1 == QString( "General" ) );
    87     QVERIFY( profileName1 == QString( "General" ) );
    88     
    88     
    89     QString profileName2 = profileModel->profileName(EProfileWrapperMeetingId);
    89     QString profileName2 = profileModel->profileName(EProfileWrapperMeetingId);
    90     QVERIFY( profileName2 == QString("Meeting") );
    90     QVERIFY( profileName2 == QString("Meeting") );
    91     
    91     
    92     delete profileModel;
    92     delete profileModel;
    93 }
    93 }*/
    94 /*!
    94 /*!
    95      Test Case Description:\n 
    95      Test Case Description:\n 
    96      1. Fucntion Name: QString profileName(int profileId)const; \n
    96      1. Fucntion Name: QString profileName(int profileId)const; \n
    97      2. Case Descrition: verify that it doesn't crash when using invalid profile ID. \n
    97      2. Case Descrition: verify that it doesn't crash when using invalid profile ID. \n
    98      3. Input Parameters:  \n&nbsp;&nbsp;
    98      3. Input Parameters:  \n&nbsp;&nbsp;
   132      3. Input Parameters:  \n&nbsp;&nbsp;
   132      3. Input Parameters:  \n&nbsp;&nbsp;
   133         none \n
   133         none \n
   134      4. Expected result: \n &nbsp;&nbsp;
   134      4. Expected result: \n &nbsp;&nbsp;
   135          \n
   135          \n
   136  */
   136  */
   137 void TestCpProfileModel::testProfileNames()
   137 /*void TestCpProfileModel::testProfileNames()
   138 {
   138 {
   139     CpProfileModel *profileModel = new CpProfileModel();
   139     CpProfileModel *profileModel = new CpProfileModel();
   140     
   140     
   141     QStringList profilesNames = profileModel->profileNames();
   141     QStringList profilesNames = profileModel->profileNames();
   142     
   142     
   144     QVERIFY ( profilesNames.count() == 2 ); 
   144     QVERIFY ( profilesNames.count() == 2 ); 
   145     QVERIFY( profilesNames.contains("General", Qt::CaseInsensitive));
   145     QVERIFY( profilesNames.contains("General", Qt::CaseInsensitive));
   146     QVERIFY( profilesNames.contains("Meeting", Qt::CaseInsensitive));    
   146     QVERIFY( profilesNames.contains("Meeting", Qt::CaseInsensitive));    
   147     
   147     
   148     delete profileModel;
   148     delete profileModel;
   149 }
   149 }*/
   150 
   150 
   151 /*!
   151 /*!
   152      Test Case Description:\n 
   152      Test Case Description:\n 
   153      1. Fucntion Name: int activateProfile(int profileId); \n
   153      1. Fucntion Name: int activateProfile(int profileId); \n
   154      2. Case Descrition: Verify that the profile cannot be actived with the invalid profile ID. \n
   154      2. Case Descrition: Verify that the profile cannot be actived with the invalid profile ID. \n