testRunControllerNonExistentModule.cc
Go to the documentation of this file.
1 #include <string>
2 #include <iostream>
3 #include <list>
4 
5 #include <fwk/CentralConfig.h>
6 #include <fwk/RunController.h>
7 
8 #include <cppunit/extensions/HelperMacros.h>
9 
10 #include <utl/AugerException.h>
11 
12 using namespace fwk;
13 using namespace std;
14 using namespace utl;
15 
16 class testRunControllerNonExistentModule : public CppUnit::TestFixture {
17 
18  CPPUNIT_TEST_SUITE(testRunControllerNonExistentModule);
19  CPPUNIT_TEST_EXCEPTION(testDoesNotExist, ModuleSequenceException);
20  CPPUNIT_TEST_SUITE_END();
21 
22 public:
23  void setUp() { }
24 
25  void tearDown() { }
26 
27  void
29  {
30  CentralConfig::GetInstance(BOOTSTRAPFILE);
31  RunController& theController = RunController::GetInstance();
32 
33  /*VModule* unfoundModule =*/ theController.GetModule("IDontExist");
34  }
35 
36 };
37 
38 
Exception to use in case of module sequencing failures.
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
Auger Software Run Control.
Definition: RunController.h:26
static CentralConfig * GetInstance()
Use this the first time you get an instance of central configuration.
VModule & GetModule(const std::string &moduleName) const
Get module by name.

, generated on Tue Sep 26 2023.