resource: Add test for ConstructResourceObject with InvalidUri
authorRavi Nanjundappa <nravi.n@samsung.com>
Wed, 9 Sep 2015 10:05:39 +0000 (15:35 +0530)
committerJon A. Cruz <jonc@osg.samsung.com>
Fri, 11 Sep 2015 05:03:03 +0000 (05:03 +0000)
commit89f948ce26f62ac2112512e6e3f6d5a79dd1a0d2
treee3307188781eb41b681a14764926dc9aa05a2c45
parentf7f4e3e486af1641d1bf42c3bb24122f84a78c8c
resource: Add test for ConstructResourceObject with InvalidUri

Added a test case for ConstructResourceTest to simulate the scenario
of Resource creation with uri having of not having "/" as its prefix.

Change-Id: Iadfc60fa67e3f5d0d2653720f5557c4a0e5279dd
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2418
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/src/OCResource.cpp
resource/unittests/OCResourceTest.cpp