00001 //--------------------------------------------------------------------------- 00002 // TestStormKiller 00003 //--------------------------------------------------------------------------- 00004 #if !defined(TestStormKiller_H) 00005 #define TestStormKiller_H 00006 00007 #include <cppunit/TestFixture.h> 00008 #include <cppunit/TestCaller.h> 00009 00010 class clSimManager; 00011 class clTreePopulation; 00012 00016 class clTestStormKiller : public CppUnit::TestFixture { 00017 00018 public: 00019 00023 void TestStormKiller(); 00024 00025 protected: 00026 00061 void TestNormalProcessingRun1(clSimManager *p_oSimManager); 00062 00097 void TestNormalProcessingRun2(clSimManager *p_oSimManager); 00098 00133 void TestNormalProcessingRun3(clSimManager *p_oSimManager); 00134 00139 void TestRun1Timestep1(clTreePopulation *p_oPop); 00140 00145 void TestRun1Timestep2(clTreePopulation *p_oPop); 00146 00151 void TestRun1Timestep3(clTreePopulation *p_oPop); 00152 00157 void TestRun1Timestep4(clTreePopulation *p_oPop); 00158 00163 void TestRun1Timestep5(clTreePopulation *p_oPop); 00164 00169 void TestRun3Timestep1(clTreePopulation *p_oPop); 00170 00175 void TestRun3Timestep2(clTreePopulation *p_oPop); 00176 00181 void TestRun3Timestep3(clTreePopulation *p_oPop); 00182 00187 void TestRun3Timestep4(clTreePopulation *p_oPop); 00188 00193 void TestRun3Timestep5(clTreePopulation *p_oPop); 00194 00200 void TestErrorProcessing(clSimManager *p_oSimManager); 00201 00206 char *WriteXMLFile1(); 00207 00212 char *WriteXMLFile2(); 00213 00218 char *WriteXMLFile3(); 00219 00226 char* WriteXMLErrorFile1(); 00227 00233 char* WriteXMLErrorFile2(); 00234 00240 char* WriteXMLErrorFile3(); 00241 00247 char* WriteXMLErrorFile4(); 00248 00253 char* WriteXMLErrorFile5(); 00254 00260 char* WriteXMLErrorFile6(); 00261 00267 void WriteCommonStuff(std::fstream &oOut); 00268 00273 void WriteSnagBehaviorList(std::fstream &oOut); 00274 00279 void WriteNoSnagBehaviorList(std::fstream &oOut); 00280 00286 void WriteStormParameters(std::fstream &oOut); 00287 00288 00289 }; 00290 //--------------------------------------------------------------------------- 00291 #endif //TestStormKiller_H