ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
Test{{cookiecutter.device_name}}.cpp File Reference

Unit tests for the Device 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/deviceMaker.hpp"
#include "devmgr/common/device.hpp"
#include "devmgr/common/deviceConfig.hpp"
#include "devmgr/common/configSet.hpp"
#include <devmgr/common/deviceLcsIf.hpp>
#include "devmgr/devices/{{cookiecutter.device_name|lower}}.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"
#include "mock/mockIDeviceConfig.hpp"

Classes

class  My
 Test {{cookiecutter.device_name|lower}} class used for testing purposes. More...
 
class  Test
 

Namespaces

 test
 

Functions

class My capitalize ()}}
 
class Test TearDown ()
 
void expect_helper (MockDbAdapter &mock, MockIConfig &config)
 expect_helper More...
 
void expect_helper_no (MockDbAdapter &mock)
 
 TEST_F (Test{{cookiecutter.device_name|capitalize()}}, Ctor)
 Test {{cookiecutter.device_name|capitalize()}} constructor. More...
 
 TEST_F (Test{{cookiecutter.device_name|capitalize()}}, Setup)
 Test {{cookiecutter.device_name|capitalize()}} Setup method. More...
 

Variables

std::string const CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml"
 
std::string const {{cookiecutter.device_name|upper}}_CFG = std::string(WAF_MODULE_PATH) + "/test/res/test{{cookiecutter.device_name|capitalize()}}.yml"
 

Detailed Description

Unit tests for the Device class.

Author
mkiekebu

Function Documentation

class My capitalize ( )
void expect_helper ( MockDbAdapter mock,
MockIConfig config 
)

expect_helper

Parameters
mockMock for DbAdapter class
configMock for Configuration class

This functions encapsulate the all the calls expected for the mock classes used in the test functions in this file.

void expect_helper_no ( MockDbAdapter mock)
class Test TearDown ( )
TEST_F ( Test{{cookiecutter.device_name|capitalize()}}  ,
Ctor   
)

Test {{cookiecutter.device_name|capitalize()}} constructor.

TEST_F ( Test{{cookiecutter.device_name|capitalize()}}  ,
Setup   
)

Test {{cookiecutter.device_name|capitalize()}} Setup method.

Variable Documentation

std::string const CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml"
std::string const {{cookiecutter.device_name|upper}}_CFG = std::string(WAF_MODULE_PATH) + "/test/res/test{{cookiecutter.device_name|capitalize()}}.yml"