3 #include "UniqueStringGenerator.hh"
5 #include <StjTreeIndex.h>
6 #include <StjTreeIndexList.h>
7 #include <StjTreeIndexListCreator.h>
9 #include <TDirectory.h>
15 #include "StjTreeIndexListCreatorTest.hh"
22 void StjTreeIndexListCreatorTest::setUp()
27 void StjTreeIndexListCreatorTest::tearDown()
32 void StjTreeIndexListCreatorTest::testOne()
34 TDirectory* testDir = setupTestTDirecotry();
37 idxCreator.AddTrgTreeName(
"trgBHT2");
38 idxCreator.AddTrgTreeName(
"trgBJP2");
40 StjTreeIndexList actualList = idxCreator.create();
42 StjTreeIndexList expectedList = createExpectedList();
45 for(StjTreeIndexList::const_iterator it = actualList.begin(); it != actualList.end(); ++it) {
46 cout << (*it) << endl;
49 CPPUNIT_ASSERT_EQUAL( expectedList, actualList);
53 TDirectory *StjTreeIndexListCreatorTest::setupTestTDirecotry()
55 return new TFile(
"./part_run6143024.root");
58 StjTreeIndexList StjTreeIndexListCreatorTest::createExpectedList()