summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Langlotz <johannes.langlotz@partner.bmw.de>2014-03-26 12:51:29 +0100
committerJohannes Langlotz <johannes.langlotz@partner.bmw.de>2014-03-26 12:51:29 +0100
commit882bb4ac97f681f9b326d57052916625ab777e45 (patch)
tree83009e98cb4b3940c1bd95691fb9975e4a5da020
parenta99465a6846db79e68ef277cfd7244506c1f6d08 (diff)
downloadgenivi-common-api-runtime-882bb4ac97f681f9b326d57052916625ab777e45.tar.gz
GLIPCI-236
Added test description.
-rw-r--r--org.genivi.commonapi.core.verification/src/CommunicationVerification.cpp.in13
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);