![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A metronome using the FRDM K64F board
Diff: mbed-client/test/mbedclient/utest/m2mresourceinstance/m2mresourceinstancetest.cpp
- Revision:
- 0:a7a43371b306
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-client/test/mbedclient/utest/m2mresourceinstance/m2mresourceinstancetest.cpp Sun May 14 18:40:18 2017 +0000 @@ -0,0 +1,137 @@ +/* + * Copyright (c) 2015 ARM Limited. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 + * Licensed under the Apache License, Version 2.0 (the License); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +//CppUTest includes should be after your and system includes +#include "CppUTest/TestHarness.h" +#include "test_m2mresourceinstance.h" + +TEST_GROUP(M2MResourceInstance) +{ + Test_M2MResourceInstance* m2m_resourceinstance; + + void setup() + { + m2m_resourceinstance = new Test_M2MResourceInstance(); + } + void teardown() + { + delete m2m_resourceinstance; + } +}; + +TEST(M2MResourceInstance, Create) +{ + CHECK(m2m_resourceinstance != NULL); +} + +TEST(M2MResourceInstance, test_static_resource_instance) +{ + m2m_resourceinstance->test_static_resource_instance(); +} + +TEST(M2MResourceInstance, base_type) +{ + m2m_resourceinstance->test_base_type(); +} + +TEST(M2MResourceInstance, test_handle_observation_attribute) +{ + m2m_resourceinstance->test_handle_observation_attribute(); +} + +TEST(M2MResourceInstance, test_set_execute_function) +{ + m2m_resourceinstance->test_set_execute_function(); +} + +TEST(M2MResourceInstance, test_execute) +{ + m2m_resourceinstance->test_execute(); +} + +TEST(M2MResourceInstance, test_resource_instance_type) +{ + m2m_resourceinstance->test_resource_instance_type(); +} + +TEST(M2MResourceInstance, test_set_value) +{ + m2m_resourceinstance->test_set_value(); +} + +TEST(M2MResourceInstance, test_clear_value) +{ + m2m_resourceinstance->test_clear_value(); +} + +TEST(M2MResourceInstance, test_get_value) +{ + m2m_resourceinstance->test_get_value(); +} + +TEST(M2MResourceInstance, test_value) +{ + m2m_resourceinstance->test_value(); +} + +TEST(M2MResourceInstance, test_value_length) +{ + m2m_resourceinstance->test_value_length(); +} + +TEST(M2MResourceInstance, test_handle_get_request) +{ + m2m_resourceinstance->test_handle_get_request(); +} + +TEST(M2MResourceInstance, test_handle_put_request) +{ + m2m_resourceinstance->test_handle_put_request(); +} + +TEST(M2MResourceInstance, test_set_resource_observer) +{ + m2m_resourceinstance->test_set_resource_observer(); +} + +TEST(M2MResourceInstance, test_get_object_instance_id) +{ + m2m_resourceinstance->test_get_object_instance_id(); +} + +TEST(M2MResourceInstance, test_get_object_name) +{ + m2m_resourceinstance->test_get_object_name(); +} + +TEST(M2MResourceInstance, test_set_notification_sent_function) +{ + m2m_resourceinstance->test_set_notification_sent_function(); +} + +TEST(M2MResourceInstance, test_notification_sent) +{ + m2m_resourceinstance->test_notification_sent(); +} + +TEST(M2MResourceInstance, test_ctor) +{ + m2m_resourceinstance->test_ctor(); +} + +TEST(M2MResourceInstance, test_get_parent_resource) +{ + m2m_resourceinstance->test_get_parent_resource(); +}