mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 00:49:46 +02:00
MongoDB: fixes for style and consistency
This commit is contained in:
@@ -8,11 +8,10 @@
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#include "Poco/DateTime.h"
|
||||
#include "Poco/ObjectPool.h"
|
||||
|
||||
#include "Poco/MongoDB/InsertRequest.h"
|
||||
#include "Poco/MongoDB/QueryRequest.h"
|
||||
#include "Poco/MongoDB/DeleteRequest.h"
|
||||
@@ -22,16 +21,17 @@
|
||||
#include "Poco/MongoDB/Cursor.h"
|
||||
#include "Poco/MongoDB/ObjectId.h"
|
||||
#include "Poco/MongoDB/Binary.h"
|
||||
|
||||
#include "Poco/Net/NetException.h"
|
||||
#include "Poco/UUIDGenerator.h"
|
||||
|
||||
#include "MongoDBTest.h"
|
||||
#include "CppUnit/TestCaller.h"
|
||||
#include "CppUnit/TestSuite.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using namespace Poco::MongoDB;
|
||||
|
||||
|
||||
Poco::MongoDB::Connection::Ptr MongoDBTest::_mongo;
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@ void MongoDBTest::testInsertRequest()
|
||||
_mongo->sendRequest(request);
|
||||
}
|
||||
|
||||
|
||||
void MongoDBTest::testQueryRequest()
|
||||
{
|
||||
Poco::MongoDB::QueryRequest request("team.players");
|
||||
@@ -120,6 +121,7 @@ void MongoDBTest::testQueryRequest()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MongoDBTest::testDBQueryRequest()
|
||||
{
|
||||
Database db("team");
|
||||
@@ -346,6 +348,7 @@ void MongoDBTest::testCommand() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MongoDBTest::testUUID()
|
||||
{
|
||||
Poco::MongoDB::Document::Ptr club = new Poco::MongoDB::Document();
|
||||
|
@@ -18,7 +18,6 @@
|
||||
|
||||
#include "Poco/MongoDB/MongoDB.h"
|
||||
#include "Poco/MongoDB/Connection.h"
|
||||
|
||||
#include "CppUnit/TestCase.h"
|
||||
|
||||
|
||||
@@ -27,7 +26,6 @@ class MongoDBTest: public CppUnit::TestCase
|
||||
public:
|
||||
MongoDBTest(const std::string& name);
|
||||
|
||||
|
||||
virtual ~MongoDBTest();
|
||||
|
||||
void testInsertRequest();
|
||||
@@ -49,9 +47,7 @@ public:
|
||||
static CppUnit::Test* suite();
|
||||
|
||||
private:
|
||||
|
||||
static Poco::MongoDB::Connection::Ptr _mongo;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user