Commit b8206201 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add test for worker factory - WIP

parent 8a2649a2
#include <ITA/simulation_scheduler/room_acoustics/worker_interface.h>
#include "mocks.hpp"
// GTest
#include "gtest/gtest.h"
using namespace ITA::simulation_scheduler;
using namespace room_acoustics;
TEST (WorkerFactoryTest, addNewWorkerType)
CWorkerFactory::registerWorker ( "MockWorker", MockWorker::createWorker );
IWorkerInterface::WorkerConfig config;
config.SetValueInSubList ( "FieldOfDuty", "MockWorker", 0 );
const auto worker = CWorkerFactory::createWorker ( config, nullptr );
ASSERT_NE ( worker, nullptr );
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment