Browse Source

[2108] Check that findZone() derived from DataSourceClient throws

This is unimplemented. findZone2() has the correct implementation.
Mukund Sivaraman 12 years ago
parent
commit
97cd696da6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/lib/datasrc/memory/tests/memory_client_unittest.cc

+ 6 - 0
src/lib/datasrc/memory/tests/memory_client_unittest.cc

@@ -279,6 +279,12 @@ TEST_F(MemoryClientTest, add) {
     EXPECT_EQ(ConstRRsetPtr(), iterator->getNextRRset());
 }
 
+TEST_F(MemoryClientTest, findZoneThrowsNotImplemented) {
+    // This method is not implemented.
+    EXPECT_THROW(client_->findZone(Name(".")),
+                 isc::NotImplemented);
+}
+
 TEST_F(MemoryClientTest, getUpdaterThrowsNotImplemented) {
     // This method is not implemented.
     EXPECT_THROW(client_->getUpdater(Name("."), false, false),