testRunControllerFailFinish.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 #include <utl/Test.h>
10 
11 #include <utl/AugerException.h>
12 
13 using namespace fwk;
14 using namespace std;
15 using namespace tst;
16 using namespace utl;
17 
18 
19 class testRunControllerFailFinish : public CppUnit::TestFixture {
20 
21  CPPUNIT_TEST_SUITE(testRunControllerFailFinish);
22  CPPUNIT_TEST(testModuleInitAndRun);
23  CPPUNIT_TEST_EXCEPTION(testModuleFailFinish, ModuleSequenceException);
24  CPPUNIT_TEST_SUITE_END();
25 
26 public:
27  void setUp() { }
28 
29  void tearDown() { }
30 
31  void
33  {
34  CentralConfig::GetInstance(BOOTSTRAPFILE);
35  RunController& theController = RunController::GetInstance();
36 
37  theController.Init();
38  theController.Run();
39  }
40 
41 
42  void
44  {
45  // CentralConfig::GetInstance();
46  RunController& theController = RunController::GetInstance();
47 
48  theController.Finish();
49  }
50 
51 };
52 
53 
virtual void Init()
Exception to use in case of module sequencing failures.
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
Auger Software Run Control.
Definition: RunController.h:26
virtual void Finish()
static CentralConfig * GetInstance()
Use this the first time you get an instance of central configuration.
virtual void Run()

, generated on Tue Sep 26 2023.