From caec64ec049431d46ce28742ffbd448418949e26 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 22 Apr 2018 15:08:50 +0100 Subject: Update to new PluginMock interface --- gentoobrowse-api/unittests/mockDefs.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gentoobrowse-api/unittests/mockDefs.cpp b/gentoobrowse-api/unittests/mockDefs.cpp index c06b81a..16d8853 100644 --- a/gentoobrowse-api/unittests/mockDefs.cpp +++ b/gentoobrowse-api/unittests/mockDefs.cpp @@ -15,9 +15,10 @@ MockMailServerImpl::getSentEmails(const Ice::Current &) } Service::Service() : - DB::PluginMock("user=postgres dbname=postgres", "GentooBrowseAPI", { + DB::PluginMock("GentooBrowseAPI", { rootDir.parent_path() / "db" / "schema.sql", - rootDir / "data.sql" }) + rootDir / "data.sql" }, + "user=postgres dbname=postgres") { replace("mailserver", std::make_shared()); } @@ -28,8 +29,9 @@ Maintenance::Maintenance() : "--GentooBrowseAPI.RepoRoot=" + (rootDir / "fixtures" / "gitrepo").string(), "--GentooBrowseAPI.BugRoot=file://" + (rootDir / "fixtures" / "bugs").string() }), - DB::PluginMock("user=postgres dbname=postgres", "GentooBrowseAPI", { - rootDir.parent_path() / "db" / "schema.sql" }) + DB::PluginMock("GentooBrowseAPI", { + rootDir.parent_path() / "db" / "schema.sql" }, + "user=postgres dbname=postgres") { replace("mailserver", std::make_shared()); } -- cgit v1.2.3