4 #define BOOST_TEST_DYN_LINK
5 #define BOOST_TEST_MODULE BackendLoadingTest
6 #include <boost/test/unit_test.hpp>
7 using namespace boost::unit_test_framework;
16 BOOST_AUTO_TEST_SUITE(BackendLoadingTestSuite)
19 BackendFactory::getInstance().setDMapFilePath(
"");
24 BOOST_CHECK_NO_THROW(BackendFactory::getInstance().createBackend(
"(dummy?map=goodMapFile.map)"));
28 BackendFactory::getInstance().setDMapFilePath(
"runtimeLoading/wrongVersionPlugin.dmap");
31 BOOST_CHECK_NO_THROW(BackendFactory::getInstance().createBackend(
"MY_DUMMY"));
38 BackendFactory::getInstance().setDMapFilePath(
"runtimeLoading/runtimeLoading.dmap");
41 BOOST_CHECK_NO_THROW(BackendFactory::getInstance().createBackend(
"WORKING"));
42 BOOST_CHECK_NO_THROW(BackendFactory::getInstance().createBackend(
"ANOTHER"));
45 BOOST_AUTO_TEST_SUITE_END()