hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ReducingBaseMessageTest.cpp
Go to the documentation of this file.
1 /*
2  * ReducingBaseMessageTest.cpp
3  *
4  * Created on: May 28, 2013
5  * Author: igor
6  */
7 
8 #include <gtest/gtest.h>
10 
11 using namespace HCE;
12 using namespace HCE::reduce_types;
13 using namespace std;
14 
15 TEST(ReducingBaseMessage, returnCorrectFieldValues)
16 {
17  types::MessageType processingType = types::MessageType::mtDrce;
18  string body = "msg body";
19  int ttl = 13;
20 
21  ReducingBaseMessage reducingBaseMessage(processingType, ttl, body);
22 
23  ASSERT_EQ(reducingBaseMessage.getProcessingType(), processingType);
24  ASSERT_EQ(reducingBaseMessage.getTTL(), ttl);
25  ASSERT_EQ(reducingBaseMessage.getBody(), body);
26 }