Add unittests for ConstructResourceTest for invalid host values
authorRavi Nanjundappa <nravi.n@samsung.com>
Mon, 10 Aug 2015 10:10:24 +0000 (15:40 +0530)
committerErich Keane <erich.keane@intel.com>
Mon, 10 Aug 2015 14:43:42 +0000 (14:43 +0000)
commit7b53efd7168e8043f9c8bfb6343639786ed86956
tree67771e8796253a99c51a05aa4838e32c343bca59
parentc2df938972b6a475a3a00328bbe80641de9436cb
Add unittests for ConstructResourceTest for invalid host values

Added a test case for ConstructResourceTest to simulate the scenario of
Resource creation with host
* not having the ip or device address and
* not having the "coap://" protocol prefix.

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