1//
2// NotificationCenterTest.h
3//
4// Definition of the NotificationCenterTest class.
5//
6// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
7// and Contributors.
8//
9// SPDX-License-Identifier: BSL-1.0
10//
11
12
13#ifndef NotificationCenterTest_INCLUDED
14#define NotificationCenterTest_INCLUDED
15
16
17#include "Poco/Foundation.h"
18#include "Poco/CppUnit/TestCase.h"
19#include "Poco/Notification.h"
20#include "Poco/AutoPtr.h"
21#include <set>
22
23
24class TestNotification;
25
26
27class NotificationCenterTest: public CppUnit::TestCase
28{
29public:
30 NotificationCenterTest(const std::string& name);
31 ~NotificationCenterTest();
32
33 void test1();
34 void test2();
35 void test3();
36 void test4();
37 void test5();
38 void testAuto();
39 void testDefaultCenter();
40
41 void setUp();
42 void tearDown();
43
44 static CppUnit::Test* suite();
45
46protected:
47 void handle1(Poco::Notification* pNf);
48 void handle2(Poco::Notification* pNf);
49 void handle3(Poco::Notification* pNf);
50 void handleTest(TestNotification* pNf);
51 void handleAuto(const Poco::AutoPtr<Poco::Notification>& pNf);
52
53private:
54 std::set<std::string> _set;
55};
56
57
58#endif // NotificationCenterTest_INCLUDED
59