eedb/tests/unit/test_eedb_application.cpp
2017-03-18 13:46:06 +01:00

25 lines
695 B
C++

#include <Wt/Test/WTestEnvironment>
#include <eedb/EEDB.hpp>
#include <gmock/gmock.h>
class EedbApplicationTest : public testing::Test {
public:
EedbApplicationTest() {
using std::move;
using std::make_unique;
auto env = Wt::Test::WTestEnvironment();
auto authPageFactory = []() -> eedb::AuthPage * { return nullptr; };
auto homePageFactory = []() -> eedb::HomePage * { return nullptr; };
sut = make_unique< eedb::EEDB >(nullptr, nullptr, authPageFactory, homePageFactory);
}
protected:
std::unique_ptr< eedb::EEDB > sut;
};
TEST_F(EedbApplicationTest, createAuthPage) {}
TEST_F(EedbApplicationTest, loginCreatesMainPage) {}