13 #define BOOST_TEST_DYN_LINK
14 #define BOOST_TEST_MAIN
15 #define BOOST_TEST_MODULE SearchingTestSuite
16 #include <boost/test/unit_test.hpp>
22 namespace boost_utf = boost::unit_test;
34 boost_utf::unit_test_log.set_format (boost_utf::XML);
35 boost_utf::unit_test_log.set_threshold_level (boost_utf::log_test_units);
54 const std::string
X_SQLITE_DB_FP (
"/tmp/opentrep/test_traveldb/ori_por_public.csv");
63 BOOST_AUTO_TEST_SUITE (master_test_suite)
71 std::string lLogFilename (
"SearchingTestSuite.log");
74 std::string lTravelQuery (
"nce");
77 std::ofstream logOutputFile;
79 logOutputFile.open (lLogFilename.c_str());
80 logOutputFile.clear();
92 opentrepService.interpretTravelRequest (lTravelQuery, lLocationList,
94 BOOST_CHECK_MESSAGE (nbOfMatches == 1,
95 "The travel query ('" << lTravelQuery
96 <<
"') matches with " << nbOfMatches
97 <<
" key-words, whereas 1 is expected.");
100 logOutputFile.close();
104 BOOST_AUTO_TEST_SUITE_END()
unsigned short NbOfMatches_T
const std::string X_XAPIAN_DB_FP(OPENTREP::DEFAULT_OPENTREP_XAPIAN_DB_FILEPATH)
Interface for the OPENTREP Services.
std::list< Word_T > WordList_T
BOOST_GLOBAL_FIXTURE(UnitTestConfig)
BOOST_AUTO_TEST_CASE(partition_small_string)
std::list< Location > LocationList_T
std::ofstream utfReportStream("PartitionTestSuite_utfresults.xml")
const std::string X_SQLITE_DB_FP(OPENTREP::DEFAULT_OPENTREP_SQLITE_DB_FILEPATH)