From: Mukund Sivaraman Date: Thu, 6 Sep 2012 07:58:51 +0000 (+0530) Subject: [2108] Check that findZone() derived from DataSourceClient throws X-Git-Tag: trac2351_base~70^2~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97cd696da6a3fbfbd4a395ee67ef4f5958e63099;p=thirdparty%2Fkea.git [2108] Check that findZone() derived from DataSourceClient throws This is unimplemented. findZone2() has the correct implementation. --- diff --git a/src/lib/datasrc/memory/tests/memory_client_unittest.cc b/src/lib/datasrc/memory/tests/memory_client_unittest.cc index b4eefabe41..0b2e6d8dad 100644 --- a/src/lib/datasrc/memory/tests/memory_client_unittest.cc +++ b/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),