hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 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>
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),
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 }