generated from Sithas/conan_template
Подготовка интеграционного теста
This commit is contained in:
@@ -7,16 +7,21 @@
|
|||||||
#include <boost/test/included/unit_test.hpp>
|
#include <boost/test/included/unit_test.hpp>
|
||||||
|
|
||||||
#include "./../../src/endpoints_handlers/AuthRegistrationExecutor.h"
|
#include "./../../src/endpoints_handlers/AuthRegistrationExecutor.h"
|
||||||
|
#include "./../../src/DAO/MySQLUserDAO.h"
|
||||||
|
#include "./../../src/db/mysql_connector.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace uad;
|
using namespace uad;
|
||||||
|
using namespace boost;
|
||||||
|
|
||||||
static boost::beast::http::request_parser<boost::beast::http::string_body> parser;
|
using RouteAuthRegistrationExecutor = AuthRegistrationExecutor<beast::http::string_body,
|
||||||
using RouteAuthRegistrationExecutor = AuthRegistrationExecutor<
|
std::allocator<char>,
|
||||||
const std::string, decltype(parser.release()), boost::beast::http::string_body>;
|
beast::http::string_body>;
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(AuthRegistrationExecutor_Succesful_Login)
|
BOOST_AUTO_TEST_CASE(AuthRegistrationExecutor_Succesful_Login)
|
||||||
{
|
{
|
||||||
|
auto user_dao = make_shared<MySQLUserDAO>(GetMySqlSession());
|
||||||
|
auto executor = make_shared<RouteAuthRegistrationExecutor>(GetMySqlSession(), user_dao);
|
||||||
|
|
||||||
BOOST_CHECK(true == true);
|
BOOST_CHECK(true == true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user