|
@@ -15,6 +15,7 @@
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
|
#include <dns/name.h>
|
|
|
+#include <exceptions/exceptions.h>
|
|
|
|
|
|
#include <datasrc/database.h>
|
|
|
|
|
@@ -90,4 +91,9 @@ TEST_F(DatabaseClientTest, superZone) {
|
|
|
checkZoneFinder(zone);
|
|
|
}
|
|
|
|
|
|
+TEST_F(DatabaseClientTest, noConnException) {
|
|
|
+ EXPECT_THROW(DatabaseClient(auto_ptr<DatabaseConnection>()),
|
|
|
+ isc::InvalidParameter);
|
|
|
+}
|
|
|
+
|
|
|
}
|