Skip to content
Snippets Groups Projects
Commit 269366da authored by Martin Killenberg's avatar Martin Killenberg
Browse files

fixed error handling to actually test dspectrum creation

parent 640c4b9b
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,10 @@ public:
typename boost::shared_ptr<D_fct> createDoocsScalar(typename ProcessVariable::SharedPtr & processVariable){
return DoocsPVFactory::createDoocsScalar<T, DOOCS_T>(processVariable);
}
template<class T>
typename boost::shared_ptr<D_fct> createDoocsSpectrum(typename ProcessVariable::SharedPtr & processVariable){
return DoocsPVFactory::createDoocsSpectrum<T>(processVariable);
}
};
template<class T, class DOOCS_T>
......@@ -227,7 +231,7 @@ BOOST_AUTO_TEST_CASE( testErrorHandling ){
// now the same with arrays
ProcessVariable::SharedPtr processArray = csManager->getProcessArray<int64_t>("A/toDeviceArray");
BOOST_CHECK_THROW( ( testableFactory.createDoocsScalar<int32_t, D_int>(processArray) ),
BOOST_CHECK_THROW( ( testableFactory.createDoocsSpectrum<int32_t>(processArray) ),
std::invalid_argument );
// finally we check that the create method catches the not-supported type.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment