added tests
This commit is contained in:
18
FlippR-Driver/src/output/DisplayController.cpp
Normal file
18
FlippR-Driver/src/output/DisplayController.cpp
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* DisplayController.cpp
|
||||||
|
*
|
||||||
|
* Created on: Aug 7, 2018
|
||||||
|
* Author: rhetenor
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "DisplayController.h"
|
||||||
|
|
||||||
|
DisplayController::DisplayController() {
|
||||||
|
// TODO Auto-generated constructor stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
DisplayController::~DisplayController() {
|
||||||
|
// TODO Auto-generated destructor stub
|
||||||
|
}
|
||||||
|
|
||||||
19
FlippR-Driver/src/output/DisplayController.h
Normal file
19
FlippR-Driver/src/output/DisplayController.h
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* DisplayController.h
|
||||||
|
*
|
||||||
|
* Created on: Aug 7, 2018
|
||||||
|
* Author: rhetenor
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SOURCE_DIRECTORY__SRC_OUTPUT_DISPLAYCONTROLLER_H_
|
||||||
|
#define SOURCE_DIRECTORY__SRC_OUTPUT_DISPLAYCONTROLLER_H_
|
||||||
|
|
||||||
|
#include "IDisplayController.h"
|
||||||
|
|
||||||
|
class DisplayController: public output::IDisplayController {
|
||||||
|
public:
|
||||||
|
DisplayController();
|
||||||
|
virtual ~DisplayController();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* SOURCE_DIRECTORY__SRC_OUTPUT_DISPLAYCONTROLLER_H_ */
|
||||||
File diff suppressed because it is too large
Load Diff
29
FlippR-Driver/tests/output/TestCabinetItem.cpp
Normal file
29
FlippR-Driver/tests/output/TestCabinetItem.cpp
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* TestCabinetItem.cpp
|
||||||
|
*
|
||||||
|
* Created on: Aug 7, 2018
|
||||||
|
* Author: rhetenor
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include "catch.hpp"
|
||||||
|
#include "fakeit.hpp"
|
||||||
|
|
||||||
|
#include "utilities/LoggerFactory.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
// testing purposes
|
||||||
|
#define private public
|
||||||
|
|
||||||
|
#include "output/CabinetItem.h"
|
||||||
|
|
||||||
|
using namespace output;
|
||||||
|
using namespace fakeit;
|
||||||
|
|
||||||
|
SCENARIO("")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
29
FlippR-Driver/tests/output/TestDisplay.cpp
Normal file
29
FlippR-Driver/tests/output/TestDisplay.cpp
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* TestDisplay.cpp
|
||||||
|
*
|
||||||
|
* Created on: Aug 7, 2018
|
||||||
|
* Author: rhetenor
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include "catch.hpp"
|
||||||
|
#include "fakeit.hpp"
|
||||||
|
|
||||||
|
#include "utilities/LoggerFactory.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
// testing purposes
|
||||||
|
#define private public
|
||||||
|
|
||||||
|
#include "output/Display.h"
|
||||||
|
|
||||||
|
using namespace output;
|
||||||
|
using namespace fakeit;
|
||||||
|
|
||||||
|
SCENARIO("")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
25
FlippR-Driver/tests/output/TestDisplayController.cpp
Normal file
25
FlippR-Driver/tests/output/TestDisplayController.cpp
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* TestDisplayController.cpp
|
||||||
|
*
|
||||||
|
* Created on: Aug 7, 2018
|
||||||
|
* Author: rhetenor
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "catch.hpp"
|
||||||
|
#include "fakeit.hpp"
|
||||||
|
|
||||||
|
#include "utilities/LoggerFactory.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
// testing purposes
|
||||||
|
#define private public
|
||||||
|
|
||||||
|
#include "output/DisplayController.h"
|
||||||
|
|
||||||
|
using namespace output;
|
||||||
|
using namespace fakeit;
|
||||||
|
|
||||||
|
SCENARIO("")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
25
FlippR-Driver/tests/output/TestInputDriverFactory.cpp
Normal file
25
FlippR-Driver/tests/output/TestInputDriverFactory.cpp
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* TestInputDriverFactory.cpp
|
||||||
|
*
|
||||||
|
* Created on: Jul 11, 2018
|
||||||
|
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Oliver Martin, Dr. Franca Rupprecht
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "catch.hpp"
|
||||||
|
#include "fakeit.hpp"
|
||||||
|
|
||||||
|
#include "utilities/LoggerFactory.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
// testing purposes
|
||||||
|
#define private public
|
||||||
|
|
||||||
|
#include "output/Solenoid.h"
|
||||||
|
|
||||||
|
using namespace Output;
|
||||||
|
using namespace fakeit;
|
||||||
|
|
||||||
|
SCENARIO("")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
25
FlippR-Driver/tests/output/TestLamp.cpp
Normal file
25
FlippR-Driver/tests/output/TestLamp.cpp
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* TestLamp.cpp
|
||||||
|
*
|
||||||
|
* Created on: Aug 7, 2018
|
||||||
|
* Author: rhetenor
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "catch.hpp"
|
||||||
|
#include "fakeit.hpp"
|
||||||
|
|
||||||
|
#include "utilities/LoggerFactory.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
// testing purposes
|
||||||
|
#define private public
|
||||||
|
|
||||||
|
#include "output/Lamp.h"
|
||||||
|
|
||||||
|
using namespace output;
|
||||||
|
using namespace fakeit;
|
||||||
|
|
||||||
|
SCENARIO("")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
28
FlippR-Driver/tests/output/TestOutputDriver.cpp
Normal file
28
FlippR-Driver/tests/output/TestOutputDriver.cpp
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* TestOutputDriver.cpp
|
||||||
|
*
|
||||||
|
* Created on: Aug 7, 2018
|
||||||
|
* Author: rhetenor
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "catch.hpp"
|
||||||
|
#include "fakeit.hpp"
|
||||||
|
|
||||||
|
#include "utilities/LoggerFactory.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
// testing purposes
|
||||||
|
#define private public
|
||||||
|
|
||||||
|
#include "output/OutputDriver.h"
|
||||||
|
|
||||||
|
using namespace output;
|
||||||
|
using namespace fakeit;
|
||||||
|
|
||||||
|
SCENARIO("")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
29
FlippR-Driver/tests/output/TestSolenoid.cpp
Normal file
29
FlippR-Driver/tests/output/TestSolenoid.cpp
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* TestSolenoid.cpp
|
||||||
|
*
|
||||||
|
* Created on: Aug 7, 2018
|
||||||
|
* Author: rhetenor
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include "catch.hpp"
|
||||||
|
#include "fakeit.hpp"
|
||||||
|
|
||||||
|
#include "utilities/LoggerFactory.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
// testing purposes
|
||||||
|
#define private public
|
||||||
|
|
||||||
|
#include "output/Solenoid.h"
|
||||||
|
|
||||||
|
using namespace output;
|
||||||
|
using namespace fakeit;
|
||||||
|
|
||||||
|
SCENARIO("")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
27
FlippR-Driver/tests/output/TestSound.cpp
Normal file
27
FlippR-Driver/tests/output/TestSound.cpp
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* TestSound.cpp
|
||||||
|
*
|
||||||
|
* Created on: Aug 7, 2018
|
||||||
|
* Author: rhetenor
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "catch.hpp"
|
||||||
|
#include "fakeit.hpp"
|
||||||
|
|
||||||
|
#include "utilities/LoggerFactory.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
// testing purposes
|
||||||
|
#define private public
|
||||||
|
|
||||||
|
#include "output/Sound.h"
|
||||||
|
|
||||||
|
using namespace output;
|
||||||
|
using namespace fakeit;
|
||||||
|
|
||||||
|
SCENARIO("")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user