10Duke Scale C++ Client
Loading...
Searching...
No Matches
BaseTestForRestAPIRequests.h
1#ifndef TENDUKE_SE_TEST_BASETESTFORRESTAPIREQUESTS_H
2#define TENDUKE_SE_TEST_BASETESTFORRESTAPIREQUESTS_H
3
4#include "config/ClientProperties.h"
5#include "http/HTTPResponseToAPIException.h"
6#include "json/nj/NJJSONParser.h"
7#include "net/URL.h"
8#include "rest/RESTConfiguration.h"
9
10#include "fakes/HTTPClientFake.h"
11
12#include "URLMockingTest.h"
13#include "mocks/HTTPClientMock.h"
14#include "mocks/HTTPRequestAuthenticatorMock.h"
15
16#include "gtest/gtest.h"
17#include "gmock/gmock.h"
18
19namespace tenduke { namespace se { namespace test {
20
22{
23protected:
24 void SetUp() override;
25 std::string toString(const ::tenduke::net::URL &url) const;
26 void verifyClientClaimHeaders(const ::std::multimap<std::string, std::string> & headers);
27
28 std::shared_ptr<::tenduke::se::ClientProperties> clientProperties;
29 std::shared_ptr<::tenduke::json::nj::NJJSONParser> jsonParser;
30 std::shared_ptr<::tenduke::test::fakes::HTTPClientFake> httpClient;
31 std::shared_ptr<::tenduke::test::mocks::HTTPClientMock> httpClientMock;
32 std::shared_ptr<::tenduke::test::mocks::HTTPRequestAuthenticatorMock> httpRequestAuthenticator;
33 std::shared_ptr<::tenduke::se::http::HTTPResponseToAPIException> httpResponseToException;
34
35 std::shared_ptr<::tenduke::se::rest::RESTConfiguration> backendConfiguration;
36};
37
38}}}
39
40#endif //TENDUKE_SE_TEST_BASETESTFORRESTAPIREQUESTS_H
Definition BaseTestForRestAPIRequests.h:22
Definition URLMockingTest.h:14
Classes, functions and globals of 10Duke Scale C++ Client.
Definition AbstractClientFactory.h:16
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16