8 #include <gtest/gtest.h>
13 using namespace HCE::reduce;
18 using ::testing::Return;
27 reducingExceptionsTranslator.assign(NULL);
28 etalonOutputMessage.assign(NULL);
29 reducingOutputMessage.assign(NULL);
45 string reducingResultJSON =
"test";
48 etalonOutputMessage =
buildEtalonFrom(msgType, ttl, reducingResultJSON);
52 reducingOutputMessage = reducingOutputMessageBuilder.
build(msgType, ttl, reducingResultJSON);
55 *etalonOutputMessage.get()));
64 EXPECT_CALL(*reducingExceptionsTranslator.get(), translateToErrorCode(_))
66 EXPECT_CALL(*reducingExceptionsTranslator.get(), translateToErrorMsg(_))
67 .WillOnce(Return(notFoundByKeyException.
what()));
71 reducingOutputMessage = reducingOutputMessageBuilder.
build(notFoundByKeyException);
74 *etalonOutputMessage.get()));