testCentralConfigXMLParseException.cc
Go to the documentation of this file.
1 
9 #include <string>
10 #include <iostream>
11 #include <list>
12 
13 #include <utl/AugerException.h>
14 #include <utl/AugerUnits.h>
15 
16 #include <fwk/CentralConfig.h>
17 #include <utl/Reader.h>
18 
19 #include <cppunit/extensions/HelperMacros.h>
20 #include <tst/Verify.h>
21 
22 using namespace std;
23 using namespace utl;
24 using namespace tst;
25 using namespace fwk;
26 
27 
28 class CentralConfigTest : public CppUnit::TestFixture {
29 
30  // This tests case of exception being thrown when
31  //
32  CPPUNIT_TEST_SUITE(CentralConfigTest);
33  CPPUNIT_TEST_EXCEPTION(testXMLParseException, XMLParseException);
34  CPPUNIT_TEST_SUITE_END();
35 
36 public:
37 
38  void setUp() { }
39 
40  void tearDown() { }
41 
42  void
44  {
45  tst::Expected();
46  CentralConfig::GetInstance(BOOTSTRAPFILE);
47  }
48 
49 };
50 
51 
Exception for errors encountered when parsing XML.
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
void Expected()
Print `Expected&#39; for expected failures.
Definition: Verify.h:85

, generated on Tue Sep 26 2023.