hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
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>
9
#include "
ReducingBaseMessage.hpp
"
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
}
sources
utils
reduceHandler
tests
ReducingBaseMessageTest.cpp
Generated on Tue Jun 30 2015 19:42:15 for hce-node application by
1.8.1.2