diff options
author | Johannes Langlotz <Johannes.Langlotz@partner.bmw.de> | 2014-04-02 18:57:01 +0200 |
---|---|---|
committer | Gerrit Code Review <qqmthk1@lpmodthk02.bmwgroup.net> | 2014-04-02 18:57:01 +0200 |
commit | 9a9c3effc9572d77e92698b438905d50f0fa11fd (patch) | |
tree | e7025e412f75819ef8cf648bfa87ae166bb6a211 | |
parent | bebfdf2c5d21edf6f418f686ec366188ed499ec2 (diff) | |
parent | 882bb4ac97f681f9b326d57052916625ab777e45 (diff) | |
download | genivi-common-api-runtime-9a9c3effc9572d77e92698b438905d50f0fa11fd.tar.gz |
Merge "GLIPCI-236 Added test description."
-rw-r--r-- | org.genivi.commonapi.core.verification/src/CommunicationVerification.cpp.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/org.genivi.commonapi.core.verification/src/CommunicationVerification.cpp.in b/org.genivi.commonapi.core.verification/src/CommunicationVerification.cpp.in index 5c548be..f20300d 100644 --- a/org.genivi.commonapi.core.verification/src/CommunicationVerification.cpp.in +++ b/org.genivi.commonapi.core.verification/src/CommunicationVerification.cpp.in @@ -5,6 +5,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +/** +* @file Communication +*/ + #include <functional> #include <fstream> #include <gtest/gtest.h> @@ -78,7 +82,14 @@ protected: std::shared_ptr<CommonAPI::ServicePublisher> servicePublisher_; }; - +/** +* @test Builds proxy, registers service, checks if proxy is available, calls test method, checks call status, unregisters service. +* - Calls proxyFactory_->buildProxy(...) and checks if return value is true. +* - Calls servicePublisher_->registerService(...) and checks if return value is true (max. 100 tries every 10 ms). +* - Checks if proxy is available (max. 100 tries every 10 ms). +* - Calls test method and checks if returned call status is CommonAPI::CallStatus::SUCCESS. +* - Unregisters the test service. +*/ TEST_F(CommunicationTest, RemoteMethodCallSucceeds) { auto defaultTestProxy = proxyFactory_->buildProxy<commonapi::tests::TestInterfaceProxy>(testAddress); ASSERT_TRUE((bool)defaultTestProxy); |