Enable disabled Configure unit tests in OCPlatformTest.
authorZiran Sun <ziran.sun@samsung.com>
Tue, 23 Aug 2016 14:08:26 +0000 (15:08 +0100)
committerHabib Virji <habib.virji@samsung.com>
Mon, 5 Sep 2016 12:50:18 +0000 (12:50 +0000)
Since all the functionalities called in these unit tests
are now available, enable these tests. Verification via
local tests has been done before enable any of these tests.

Change-Id: Ie5086e3394460452dd92199629017b30f1ef0030
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10809
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
resource/unittests/OCPlatformTest.cpp

index 0fea345..f671cd3 100644 (file)
@@ -163,10 +163,7 @@ namespace OCPlatformTest
         return resourceHandle;
     }
 
-    //Configure
-    // Enable it when the stack throw an exception
-    // https://jira.iotivity.org/browse/IOT-428
-    TEST(ConfigureTest, DISABLED_ConfigureInvalidModeType)
+    TEST(ConfigureTest, ConfigureInvalidModeType)
     {
         PlatformConfig cfg {
              OC::ServiceType::InProc,
@@ -179,9 +176,7 @@ namespace OCPlatformTest
          EXPECT_ANY_THROW(OCPlatform::setDefaultDeviceEntityHandler(NULL));
      }
 
-    // Enable it when the stack throw an exception
-    // https://jira.iotivity.org/browse/IOT-428
-    TEST(ConfigureTest, DISABLED_ConfigureInvalidServiceType)
+    TEST(ConfigureTest, ConfigureInvalidServiceType)
     {
         PlatformConfig cfg {
              (OC::ServiceType)99,
@@ -194,9 +189,7 @@ namespace OCPlatformTest
          EXPECT_ANY_THROW(OCPlatform::setDefaultDeviceEntityHandler(NULL));
      }
 
-    // Enable it when the stack throw an exception
-    // https://jira.iotivity.org/browse/IOT-428
-    TEST(ConfigureTest, DISABLED_ConfigureClientOutProc)
+    TEST(ConfigureTest, ConfigureClientOutProc)
     {
         PlatformConfig cfg {
             OC::ServiceType::OutOfProc,