diff options
author | Johannes Langlotz <johannes.langlotz@partner.bmw.de> | 2014-03-26 12:51:29 +0100 |
---|---|---|
committer | Johannes Langlotz <johannes.langlotz@partner.bmw.de> | 2014-03-26 12:51:29 +0100 |
commit | 882bb4ac97f681f9b326d57052916625ab777e45 (patch) | |
tree | 83009e98cb4b3940c1bd95691fb9975e4a5da020 | |
parent | a99465a6846db79e68ef277cfd7244506c1f6d08 (diff) | |
download | genivi-common-api-runtime-882bb4ac97f681f9b326d57052916625ab777e45.tar.gz |
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); |