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
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