| 1 | // |
|---|---|
| 2 | // MongoDBTest.h |
| 3 | // |
| 4 | // Definition of the MongoDBTest 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 MongoDBTest_INCLUDED |
| 14 | #define MongoDBTest_INCLUDED |
| 15 | |
| 16 | |
| 17 | #include "Poco/MongoDB/MongoDB.h" |
| 18 | #include "Poco/MongoDB/Connection.h" |
| 19 | #include "Poco/CppUnit/TestCase.h" |
| 20 | |
| 21 | |
| 22 | class MongoDBTest: public CppUnit::TestCase |
| 23 | { |
| 24 | public: |
| 25 | MongoDBTest(const std::string& name); |
| 26 | |
| 27 | virtual ~MongoDBTest(); |
| 28 | |
| 29 | void testInsertRequest(); |
| 30 | void testQueryRequest(); |
| 31 | void testDBQueryRequest(); |
| 32 | void testCountCommand(); |
| 33 | void testDBCountCommand(); |
| 34 | void testDBCount2Command(); |
| 35 | void testDeleteRequest(); |
| 36 | void testBuildInfo(); |
| 37 | void testConnectionPool(); |
| 38 | void testCursorRequest(); |
| 39 | void testObjectID(); |
| 40 | void testCommand(); |
| 41 | void testUUID(); |
| 42 | void testConnectURI(); |
| 43 | void setUp(); |
| 44 | void tearDown(); |
| 45 | |
| 46 | static CppUnit::Test* suite(); |
| 47 | |
| 48 | private: |
| 49 | static Poco::MongoDB::Connection::Ptr _mongo; |
| 50 | }; |
| 51 | |
| 52 | |
| 53 | #endif // MongoDBTest_INCLUDED |
| 54 |