ifw
0.0.1-dev
|
Unit tests for Test{{cookiecutter.device_name|capitalize()}}Config class. More...
#include <fcf/common/dispatcher.hpp>
#include <devmgr/common/actionMgr.hpp>
#include <devmgr/common/config.hpp>
#include <devmgr/common/dataContext.hpp>
#include <devmgr/common/deviceFacade.hpp>
#include <devmgr/common/device.hpp>
#include <devmgr/common/deviceLcsIf.hpp>
#include <devmgr/devices/{{cookiecutter.device_name|lower}}Config.hpp>
#include <rad/DbAdapterRedis.hpp>
#include <rad/Dispatcher.hpp>
#include <rad/MsgReplier.hpp>
#include <rad/SMAdapter.hpp>
#include <boost/asio.hpp>
#include <gtest/gtest.h>
#include <google/protobuf/stubs/common.h>
#include "mock/mockIComm.hpp"
#include "mock/mockDbAdapter.hpp"
#include "mock/mockIConfig.hpp"
Classes | |
class | Test |
Namespaces | |
test | |
Functions | |
class Test | TearDown () |
void | expect_helper (MockDbAdapter &mock) |
expect_helper More... | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, Ctor) | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, ReadConfig) | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, GetIdentifier) | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, GetPrefix) | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, GetAddress) | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, GetType) | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, GetNamespace) | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, GetNodeId) | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, GetProcId) | |
TEST_F (Test{{cookiecutter.device_name|capitalize()}}Config, GetObjId) | |
Variables | |
Config | |
std::string const | CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml" |
std::string | const {{cookiecutter.device_name|upper}}1_CFG = std::string(WAF_MODULE_PATH) + "/test/res/{{cookiecutter.device_name|lower}}1.yml" |
std::string const | WRONG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/wrong.yml" |
Unit tests for Test{{cookiecutter.device_name|capitalize()}}Config class.
void expect_helper | ( | MockDbAdapter & | mock | ) |
expect_helper
mock | Mock for DbAdapter class |
config | Mock for Configuration class |
This functions encapsulate the all the calls expected for the mock classes used in the test functions in this file.
class Test TearDown | ( | ) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
Ctor | |||
) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
ReadConfig | |||
) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
GetIdentifier | |||
) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
GetPrefix | |||
) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
GetAddress | |||
) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
GetType | |||
) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
GetNamespace | |||
) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
GetNodeId | |||
) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
GetProcId | |||
) |
TEST_F | ( | Test{{cookiecutter.device_name|capitalize()}} | Config, |
GetObjId | |||
) |
Config |
std::string const CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml" |
std::string const {{cookiecutter.device_name|upper}}1_CFG = std::string(WAF_MODULE_PATH) + "/test/res/{{cookiecutter.device_name|lower}}1.yml" |
std::string const WRONG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/wrong.yml" |