hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
hce-node application
HCE project node model
Namespaces
Classes
Files
File List
sources
src
utils
algorithms
applicationFramework
asmXMLParser
base64
coreDumpChecker
DRCE
exec
HCECSM
jsonObjExtractor
kvdb
messageStream
reduceAdditionCore
reduceCore
reduceDRCE
reduceHandler
samlpes
src
tests
HandlerMocks.hpp
PocoJSONReducingInputMessageConvertorTest.cpp
PocoJSONReducingOutputMessageConvertorTest.cpp
ReduceAdditionsStorageTests.cpp
ReducerFunctionalObjectSphinxTest.cpp
ReducerFunctionalObjectTest.cpp
ReducingBaseMessageTest.cpp
ReducingExceptionsTranslatorTest.cpp
ReducingHandlerIntergationTest.cpp
ReducingHandlerTest.cpp
ReducingOutputMessageBuilderTest.cpp
ReducingOutputMessageTest.cpp
ReducingPartsCountersStorageTest.cpp
ReducingTaskTTLManagerTest.cpp
TaskReducersManagerFactoryTest.cpp
TestUtils.cpp
TestUtils.hpp
reduceSphinx
refine
serializable
sphinx
types
xmlCleaner
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
ReducingExceptionsTranslatorTest.cpp
Go to the documentation of this file.
1
#include <gtest/gtest.h>
2
#include "
ReducingExceptionsTranslator.hpp
"
3
4
using namespace
HCE::reduce;
5
6
TEST
(
ReducingExceptionsTranslator
, translateNotFoundByKeyExceptionToCorrectErrCode)
7
{
8
NotFoundByKeyException
notFoundByKeyException(
"key 2 is wrong"
);
9
ReducingExceptionsTranslator
reducingExceptionsTranslator;
10
11
ASSERT_EQ(reducingExceptionsTranslator.
translateToErrorCode
(notFoundByKeyException),
12
INTERNAL_ERROR
);
13
}
14
15
16
TEST
(
ReducingExceptionsTranslator
, translateNotFoundByKeyExceptionToCorrectErrMsg)
17
{
18
NotFoundByKeyException
notFoundByKeyException(
"key 2 is wrong"
);
19
ReducingExceptionsTranslator
reducingExceptionsTranslator;
20
21
ASSERT_EQ(reducingExceptionsTranslator.
translateToErrorMsg
(notFoundByKeyException),
22
notFoundByKeyException.
what
());
23
}
sources
utils
reduceHandler
tests
ReducingExceptionsTranslatorTest.cpp
Generated on Tue Jun 30 2015 19:42:15 for hce-node application by
1.8.1.2