Go to the documentation of this file.00001
00005
00006
00007
00008
00009 #include <sstream>
00010 #include <fstream>
00011 #include <string>
00012
00013 #define BOOST_TEST_DYN_LINK
00014 #define BOOST_TEST_MAIN
00015 #define BOOST_TEST_MODULE UnconstrainerTestSuite
00016 #include <boost/test/unit_test.hpp>
00017
00018 #include <stdair/basic/BasLogParams.hpp>
00019 #include <stdair/basic/BasDBParams.hpp>
00020 #include <stdair/basic/BasFileMgr.hpp>
00021 #include <stdair/service/Logger.hpp>
00022
00023 #include <rmol/RMOL_Service.hpp>
00024
00025 namespace boost_utf = boost::unit_test;
00026
00027
00028 std::ofstream utfReportStream ("UnconstrainerTestSuite_utfresults.xml");
00029
00033 struct UnitTestConfig {
00035 UnitTestConfig() {
00036 boost_utf::unit_test_log.set_stream (utfReportStream);
00037 boost_utf::unit_test_log.set_format (boost_utf::XML);
00038 boost_utf::unit_test_log.set_threshold_level (boost_utf::log_test_units);
00039
00040 }
00041
00043 ~UnitTestConfig() {
00044 }
00045 };
00046
00047
00048
00049
00050
00051 BOOST_GLOBAL_FIXTURE (UnitTestConfig);
00052
00057 BOOST_AUTO_TEST_SUITE (master_test_suite)
00058
00059
00062 BOOST_AUTO_TEST_CASE (rmol_unconstraining_em) {
00063 const bool lTestFlag = true;
00064 BOOST_CHECK_EQUAL (lTestFlag, true);
00065 BOOST_CHECK_MESSAGE (lTestFlag == true,
00066 "The test has failed. Please see the log file for "
00067 << "more details");
00068 }
00069
00070
00071 BOOST_AUTO_TEST_SUITE_END()
00072
00073