2021-01-30 08:51:39 +02:00
|
|
|
//
|
|
|
|
// ObjectPoolTest.h
|
|
|
|
//
|
|
|
|
// Definition of the ObjectPoolTest class.
|
|
|
|
//
|
|
|
|
// Copyright (c) 2010-2012, Applied Informatics Software Engineering GmbH.
|
|
|
|
// and Contributors.
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef ObjectPoolTest_INCLUDED
|
|
|
|
#define ObjectPoolTest_INCLUDED
|
|
|
|
|
|
|
|
|
|
|
|
#include "Poco/Foundation.h"
|
|
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
|
|
|
|
|
|
class ObjectPoolTest: public CppUnit::TestCase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ObjectPoolTest(const std::string& name);
|
|
|
|
~ObjectPoolTest();
|
|
|
|
|
|
|
|
void testObjectPool();
|
2021-08-22 18:07:06 +03:00
|
|
|
void testObjectPoolWaitOnBorrowObject();
|
2021-01-30 08:51:39 +02:00
|
|
|
|
|
|
|
void setUp();
|
|
|
|
void tearDown();
|
|
|
|
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // ObjectPoolTest_INCLUDED
|