Skip to content
Snippets Groups Projects
Commit ed0facd5 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

added trivial check for what() of exceptions

parent 6ed086e1
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testTwoScalarPollPushAccessors, T, test_types ) {
BOOST_ERROR("Exception expected.");
}
catch(ctk::ApplicationExceptionWithID<ctk::ApplicationExceptionID::illegalVariableNetwork> &e) {
BOOST_CHECK_NO_THROW( e.what(); );
}
}
......@@ -97,6 +98,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testNoFeeder, T, test_types ) {
BOOST_ERROR("Exception expected.");
}
catch(ctk::ApplicationExceptionWithID<ctk::ApplicationExceptionID::illegalVariableNetwork> &e) {
BOOST_CHECK_NO_THROW( e.what(); );
}
}
......@@ -113,6 +115,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testTwoFeeders, T, test_types ) {
BOOST_ERROR("Exception expected.");
}
catch(ctk::ApplicationExceptionWithID<ctk::ApplicationExceptionID::illegalVariableNetwork> &e) {
BOOST_CHECK_NO_THROW( e.what(); );
}
}
......@@ -132,6 +135,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( testTooManyPollingConsumers, T, test_types ) {
BOOST_ERROR("Exception expected.");
}
catch(ctk::ApplicationExceptionWithID<ctk::ApplicationExceptionID::illegalVariableNetwork> &e) {
BOOST_CHECK_NO_THROW( e.what(); );
}
}
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