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

Adapt unit test

parent 791aad2e
......@@ -20,12 +20,12 @@ struct RavenWorkerThreadTest : testing::Test
RavenWorkerThreadTest ( )
{
// overwrite the correct create function.
CWorkerFactory::registerWorker ( "RavenWorkerThread", TestRavenWorkerThread::createWorker );
CWorkerFactory::registerWorker ( CWorkerThread::WorkerThreadConfig::getWorkerThreadConfigName ( ), TestRavenWorkerThread::createWorker );
scheduler = std::make_unique<MockScheduler> ( );
auto oConfig = CWorkerThread::WorkerThreadConfig::getDefaultWorkerThreadConfig ( );
oConfig.SetValueInSubList ( "RavenScenePath", "RavenWorkerThread", "" );
oConfig.SetValueInSubList ( CWorkerThread::WorkerThreadConfig::Properties::getRavenScenePathKey_String(), CWorkerThread::WorkerThreadConfig::getWorkerThreadConfigName(), "" );
worker = std::unique_ptr<TestRavenWorkerThread> ( dynamic_cast< TestRavenWorkerThread* >( CWorkerFactory::createWorker ( oConfig, scheduler.get ( ) ).release ( ) ) );
}
......
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