Clean-up unused feature data
[platform/framework/web/wrt-plugins-common.git] / tests / dao / WidgetDBTest.cpp
index e2b0d42..d210f9d 100644 (file)
@@ -369,7 +369,7 @@ RUNNER_TEST(widgetDB_test_get_config_value_empty)
 {
     try {
         IWidgetDBPtr widget = getWidgetDB(2005);
-        std::string tmp = widget->getConfigValue(ConfigAttribute::ID);
+        widget->getConfigValue(ConfigAttribute::ID);
 
         //exception should be thrown
         RUNNER_ASSERT(false);
@@ -439,67 +439,4 @@ RUNNER_TEST(widgetDB_test_check_installation_status_latest)
     }
 }
 
-/*
- * Name: widgetDB_test_widget_feature
- * Description: check accessiblity of widget features and their values by
- * WidgetDB
- * Expected: feature names and values should match this, which was inserted into
- * widget database
- */
-RUNNER_TEST(widgetDB_test_widget_feature)
-{
-    try {
-        IWidgetDBPtr widget = getWidgetDB(2000);
-        Features features = widget->getWidgetFeatures();
-
-        RUNNER_ASSERT(features.size() == 5);
-
-        FOREACH(it, features)
-        {
-            std::string name = (*it)->getName();
-            if ("first_2000" == name) {
-                RUNNER_ASSERT((*it)->getParams().size() == 4);
-
-                RUNNER_ASSERT((*it)->isRequired());
-            } else if ("second_2000" == name) {
-                RUNNER_ASSERT((*it)->getParams().size() == 1);
-            } else if ("third_2000" == name) {
-                IWidgetFeature::Params params = (*it)->getParams();
-
-                RUNNER_ASSERT(params.size() == 1);
-                RUNNER_ASSERT_WHAT_EQUALS("third_2000", params.begin()->first);
-                RUNNER_ASSERT_WHAT_EQUALS("thirdValue1", params.begin()->second);
-                RUNNER_ASSERT(!(*it)->isRequired());
-            } else if ("fourth_2000" == name) {
-                RUNNER_ASSERT((*it)->getParams().size() == 0);
-            } else if ("fifth_2000" == name) {
-                RUNNER_ASSERT((*it)->getParams().size() == 0);
-            } else {
-                RUNNER_ASSERT(false);
-            }
-        }
-    } catch (const WrtDeviceApis::Commons::SecurityException &e) {
-        LogError("Exception thrown." << e.DumpToString());
-        RUNNER_ASSERT(false);
-    }
-}
-
-/*
- * Name: widgetDB_test_widget_feature2
- * Description: check if requesting features from WidgetDB throw excpetion if
- * widget does not exists
- * Expected: exception should be raise if widget does not exists
- */
-RUNNER_TEST(widgetDB_test_widget_feature2)
-{
-    try {
-        IWidgetDBPtr widget = getWidgetDB(2011); //no such widget
-        Features features = widget->getWidgetFeatures();
-
-        RUNNER_ASSERT(false);
-    } catch (const WrtDeviceApis::Commons::SecurityException &e) {
-        LogDebug("OK. Exception thrown." << e.DumpToString());
-    }
-}
-
 #undef RUNNER_ASSERT_WHAT_EQUALS