diff --git a/src/plugins/JTest/JTestMain.cc b/src/plugins/JTest/JTestMain.cc index b19433086..f7c87cb4f 100644 --- a/src/plugins/JTest/JTestMain.cc +++ b/src/plugins/JTest/JTestMain.cc @@ -23,6 +23,11 @@ void InitPlugin(JApplication *app){ app->Add(new JFactoryGeneratorT()); app->Add(new JFactoryGeneratorT()); + bool except_on_loading = app->RegisterParameter("jtest:except_on_loading", false); + if (except_on_loading) { + throw JException("Planned exception on loading!"); + } + bool write_csv = false; app->SetDefaultParameter("jtest:write_csv", write_csv); if (write_csv) {