# ClientServerTestRunner.hpp
This File On Github
Ask A Question
API: latest
module: oatpp
#include "oatpp-test/web/ClientServerTestRunner.hpp"
# ClientServerTestRunner
Helper class to run Client-Server tests
namespace oatpp { namespace test { namespace web {
class ClientServerTestRunner {}
}}}
# Methods
Return Type | Name | Summary |
---|---|---|
void | addController | Add controller's endpoints to router |
void | run | Start server, execute code block passed as lambda, stop server. |
# ClientServerTestRunner::addController
Add controller's endpoints to router
- @param controller
void addController(const std::shared_ptr<ApiController>& controller)
# ClientServerTestRunner::run
Start server, execute code block passed as lambda, stop server.
- @tparam Lambda
- @param lambda
- @param timeout
template<typename Lambda>
void run(
const Lambda& lambda,
const std::chrono::duration<v_int64, std::micro>& timeout = std::chrono::hours(12)
)