testCentralConfigMd5Switch.cc
Go to the documentation of this file.
1 
9 #include <string>
10 #include <iostream>
11 #include <sstream>
12 #include <fstream>
13 
14 #include <utl/AugerException.h>
15 
16 #include <fwk/CentralConfig.h>
17 #include <utl/Reader.h>
18 
19 #include <cppunit/extensions/HelperMacros.h>
20 
21 using namespace std;
22 using namespace utl;
23 using namespace fwk;
24 
25 
26 class CentralConfigTest : public CppUnit::TestFixture {
27 
28  CPPUNIT_TEST_SUITE(CentralConfigTest);
29  CPPUNIT_TEST(testCheckOff); // check off: no exception should be thrown
30  CPPUNIT_TEST_SUITE_END();
31 
32 private:
33 
34 public:
35 
36  void setUp() { }
37 
38  void tearDown() { }
39 
40  void testCheckOff()
41  {
42  // change file contents so that fingerprint is wrong
43  ofstream out("./CentralConfig/Md5Switch.xml");
44  out << "<?xml version='1.0' encoding='iso-8859-1'?> <alteredTag/>";
45  out.close();
46 
47  CentralConfig::GetInstance(BOOTSTRAPFILE);
48  }
49 
50 };
51 
vector< t2list > out
output of the algorithm: a list of clusters
Definition: XbAlgo.cc:32
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)

, generated on Tue Sep 26 2023.