summaryrefslogtreecommitdiff
path: root/libpqpp/unittests
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 02:42:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commitda82e9c8f09f3e471044f8b52ede478ac4d5bc04 (patch)
treeeb8c79922a088398ad2e155dec0d6e831a1378ba /libpqpp/unittests
parentRemove rebind (diff)
downloadlibdbpp-postgresql-da82e9c8f09f3e471044f8b52ede478ac4d5bc04.tar.bz2
libdbpp-postgresql-da82e9c8f09f3e471044f8b52ede478ac4d5bc04.tar.xz
libdbpp-postgresql-da82e9c8f09f3e471044f8b52ede478ac4d5bc04.zip
Reshuffle and add new exceptions
Diffstat (limited to 'libpqpp/unittests')
-rw-r--r--libpqpp/unittests/testpq.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp
index 2ff3235..e6721ec 100644
--- a/libpqpp/unittests/testpq.cpp
+++ b/libpqpp/unittests/testpq.cpp
@@ -2,9 +2,9 @@
#include <boost/test/unit_test.hpp>
#include <definedDirs.h>
-#include <dbpp/modifycommand.h>
-#include <dbpp/selectcommand.h>
-#include <dbpp/column.h>
+#include <modifycommand.h>
+#include <selectcommand.h>
+#include <column.h>
#include <pq-mock.h>
#include <testCore.h>
#include <fstream>
@@ -204,7 +204,7 @@ BOOST_AUTO_TEST_CASE( reconnectInTx )
kil->execute();
delete kil;
usleep(5000);
- BOOST_REQUIRE_THROW(ro->ping(), PQ::ConnectionError);
+ BOOST_REQUIRE_THROW(ro->ping(), DB::ConnectionError);
delete ro;
delete rok;
}
@@ -213,7 +213,7 @@ BOOST_AUTO_TEST_SUITE_END();
BOOST_AUTO_TEST_CASE( connfail )
{
- BOOST_REQUIRE_THROW(DB::ConnectionFactory::createNew("postgresql", "host=localhost user=no"), PQ::ConnectionError);
+ BOOST_REQUIRE_THROW(DB::ConnectionFactory::createNew("postgresql", "host=localhost user=no"), DB::ConnectionError);
}
BOOST_AUTO_TEST_CASE( ssl )