1 #ifndef HANDLERMOCKS_H_
2 #define HANDLERMOCKS_H_
4 #include <gmock/gmock.h>
15 using namespace HCE::reduce;
16 using namespace HCE::reduce::additions;
17 using namespace HCE::reduce_types;
24 MOCK_METHOD1(findBy,
bool(
unsigned long long keyId));
25 MOCK_METHOD1(deleteBy,
void(
unsigned long long keyId));
26 MOCK_METHOD1(addReducingPartsCounterWithKey,
void(
unsigned long long keyId));
27 MOCK_METHOD1(incrementBy,
void(
unsigned long long keyId));
28 MOCK_METHOD1(getAccumulateReducingParts,
int(
unsigned long long keyId));
29 MOCK_METHOD0(getTotalTasksNumber,
unsigned int());
36 MOCK_METHOD1(findBy, Poco::SharedPtr<additions::TaskReducersManagerIf>(
unsigned long long secondKey));
37 MOCK_METHOD1(deleteBy,
void (
unsigned long long secondKey));
39 Poco::SharedPtr<additions::TaskReducersManagerIf> taskReducersManager));
40 MOCK_METHOD2(addWith,
void(
unsigned long long secondKey,
41 Poco::SharedPtr<additions::TaskReducersManagerIf> taskReducersManager));
47 MOCK_METHOD1(build, Poco::SharedPtr<additions::TaskReducersManagerIf>(
types::MessageType managerType));
59 MOCK_METHOD2(notifyWrongJSONStructure,
void(
unsigned long long itemId,
60 const SharedPtr<ReducingInputMessage>& reducingInputMessage));
68 MOCK_METHOD3(build, SharedPtr<ReducingOutputMessage>(
const types::MessageType& msgType,
69 const int ttl,
const string& json));
70 MOCK_METHOD1(build, SharedPtr<ReducingOutputMessage>
78 MOCK_METHOD1(isReducerExist,
bool(
unsigned long long reduceTaskId));
79 MOCK_METHOD1(createReducer,
void(
unsigned long long reduceTaskId));
80 MOCK_METHOD2(addDataInReducer,
void(
unsigned long long reduceTaskId,
const std::string& json));
81 MOCK_METHOD1(runReduceTaskForTaskId, std::string(
unsigned long long reduceTaskId));
82 MOCK_METHOD1(deleteReducerBy,
void(
unsigned long long reduceTaskId));