mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
POCO Redis experiment ...
This commit is contained in:
51
Redis/testsuite/src/RedisTest.h
Normal file
51
Redis/testsuite/src/RedisTest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
//
|
||||
// RedisTest.h
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
// Definition of the RedisTest class.
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#ifndef RedisTest_INCLUDED
|
||||
#define RedisTest_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/Redis/Redis.h"
|
||||
#include "Poco/Redis/Client.h"
|
||||
|
||||
#include "CppUnit/TestCase.h"
|
||||
|
||||
|
||||
class RedisTest: public CppUnit::TestCase
|
||||
{
|
||||
public:
|
||||
RedisTest(const std::string& name);
|
||||
|
||||
|
||||
virtual ~RedisTest();
|
||||
|
||||
void testEcho();
|
||||
void testPing();
|
||||
|
||||
void setUp();
|
||||
void tearDown();
|
||||
|
||||
static CppUnit::Test* suite();
|
||||
|
||||
private:
|
||||
|
||||
std::string _host;
|
||||
unsigned _port;
|
||||
static bool _connected;
|
||||
static Poco::Redis::Connection _redis;
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // RedisTest_INCLUDED
|
||||
Reference in New Issue
Block a user