$treeview $search $mathjax
00001 00005 // ////////////////////////////////////////////////////////////////////// 00006 // Import section 00007 // ////////////////////////////////////////////////////////////////////// 00008 // STL 00009 #include <sstream> 00010 #include <fstream> 00011 #include <string> 00012 #include <vector> 00013 #include <cmath> 00014 // Boost Unit Test Framework (UTF) 00015 #define BOOST_TEST_DYN_LINK 00016 #define BOOST_TEST_MAIN 00017 #define BOOST_TEST_MODULE ForecasterTestSuite 00018 #include <boost/test/unit_test.hpp> 00019 // StdAir 00020 #include <stdair/basic/BasLogParams.hpp> 00021 #include <stdair/basic/BasDBParams.hpp> 00022 #include <stdair/basic/BasFileMgr.hpp> 00023 #include <stdair/service/Logger.hpp> 00024 // RMOL 00025 #include <rmol/RMOL_Service.hpp> 00026 00027 namespace boost_utf = boost::unit_test; 00028 00029 // (Boost) Unit Test XML Report 00030 std::ofstream utfReportStream ("ForecasterTestSuite_utfresults.xml"); 00031 00035 struct UnitTestConfig { 00037 UnitTestConfig() { 00038 boost_utf::unit_test_log.set_stream (utfReportStream); 00039 boost_utf::unit_test_log.set_format (boost_utf::XML); 00040 boost_utf::unit_test_log.set_threshold_level (boost_utf::log_test_units); 00041 //boost_utf::unit_test_log.set_threshold_level (boost_utf::log_successful_tests); 00042 } 00043 00045 ~UnitTestConfig() { 00046 } 00047 }; 00048 00049 00050 // /////////////// Main: Unit Test Suite ////////////// 00051 00052 // Set the UTF configuration (re-direct the output to a specific file) 00053 BOOST_GLOBAL_FIXTURE (UnitTestConfig); 00054 00059 BOOST_AUTO_TEST_SUITE (master_test_suite) 00060 00061 00064 BOOST_AUTO_TEST_CASE (rmol_forecaster_q_forecasting) { 00065 const bool lTestFlag = true; //testForecasterHelper(0); 00066 BOOST_CHECK_EQUAL (lTestFlag, true); 00067 BOOST_CHECK_MESSAGE (lTestFlag == true, 00068 "The test has failed. Please see the log file for " 00069 << "more details"); 00070 } 00071 00072 // End the test suite 00073 BOOST_AUTO_TEST_SUITE_END() 00074 00075