summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdbpp/mockDatabase.cpp1
-rw-r--r--libdbpp/unittests/testMock.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/libdbpp/mockDatabase.cpp b/libdbpp/mockDatabase.cpp
index 15bfe12..5e78ca1 100644
--- a/libdbpp/mockDatabase.cpp
+++ b/libdbpp/mockDatabase.cpp
@@ -18,6 +18,7 @@ namespace AdHoc {
}
INSTANTIATEPLUGINOF(DB::MockDatabase);
INSTANTIATEFACTORY(DB::MockDatabase, const std::string &, const std::string &, const std::vector<boost::filesystem::path> &);
+PLUGINRESOLVER(DB::MockDatabaseFactory, DB::Connection::resolvePlugin);
namespace DB {
diff --git a/libdbpp/unittests/testMock.cpp b/libdbpp/unittests/testMock.cpp
index add0720..9a3eba6 100644
--- a/libdbpp/unittests/testMock.cpp
+++ b/libdbpp/unittests/testMock.cpp
@@ -11,7 +11,7 @@ BOOST_AUTO_TEST_CASE( noFactory )
{
BOOST_REQUIRE_THROW({
DB::MockDatabaseFactory::get("not-found");
- }, AdHoc::NoSuchPluginException);
+ }, AdHoc::LoadLibraryException);
}
BOOST_AUTO_TEST_CASE( mockFactory )