1//
2// RedisTest.h
3//
4// Definition of the RedisTest class.
5//
6// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
7// and Contributors.
8//
9// SPDX-License-Identifier: BSL-1.0
10//
11
12
13#ifndef RedisTest_INCLUDED
14#define RedisTest_INCLUDED
15
16
17#include "Poco/Redis/Redis.h"
18#include "Poco/Redis/Client.h"
19#include "Poco/CppUnit/TestCase.h"
20
21
22class RedisTest: public CppUnit::TestCase
23{
24public:
25 RedisTest(const std::string& name);
26
27
28 virtual ~RedisTest();
29
30 void testAPPEND();
31 void testBLPOP();
32 void testBRPOP();
33 void testDECR();
34 void testECHO();
35 void testError();
36 void testEVAL();
37 void testHDEL();
38 void testHEXISTS();
39 void testHGETALL();
40 void testHINCRBY();
41 void testHKEYS();
42 void testHMGET();
43 void testHMSET();
44 void testHSET();
45 void testHSTRLEN();
46 void testHVALS();
47 void testINCR();
48 void testINCRBY();
49 void testLINDEX();
50 void testLINSERT();
51 void testLPOP();
52 void testLREM();
53 void testLSET();
54 void testLTRIM();
55 void testMULTI();
56 void testMSET();
57 void testMSETWithMap();
58 void testPING();
59 void testPipeliningWithSendCommands();
60 void testPipeliningWithWriteCommand();
61 void testPubSub();
62 void testSADD();
63 void testSCARD();
64 void testSDIFF();
65 void testSDIFFSTORE();
66 void testSET();
67 void testSINTER();
68 void testSINTERSTORE();
69 void testSISMEMBER();
70 void testSMEMBERS();
71 void testSMOVE();
72 void testSPOP();
73 void testSRANDMEMBER();
74 void testSREM();
75 void testSUNION();
76 void testSUNIONSTORE();
77 void testSTRLEN();
78 void testRENAME();
79 void testRENAMENX();
80 void testRPOP();
81 void testRPOPLPUSH();
82 void testRPUSH();
83
84 void testPool();
85
86 void setUp();
87 void tearDown();
88
89 static CppUnit::Test* suite();
90
91private:
92
93 void delKey(const std::string& key);
94
95 std::string _host;
96 unsigned _port;
97 static bool _connected;
98 static Poco::Redis::Client _redis;
99
100};
101
102
103#endif // RedisTest_INCLUDED
104