add DbMgr
Change-Id: I799f6a066ef60ecd42d64de7d8d04be8996564ed
diff --git a/tests/unit/zone.cpp b/tests/unit/zone.cpp
index 0a26e76..f533d2e 100644
--- a/tests/unit/zone.cpp
+++ b/tests/unit/zone.cpp
@@ -26,13 +26,12 @@
namespace ndns {
namespace tests {
+BOOST_AUTO_TEST_SUITE(Zone)
-BOOST_AUTO_TEST_SUITE(ZoneTest)
-
-BOOST_AUTO_TEST_CASE(TestCase)
+BOOST_AUTO_TEST_CASE(Basic)
{
Name zoneName("/net/ndnsim");
- Zone zone1;
+ ndns::Zone zone1;
zone1.setName(zoneName);
zone1.setId(2);
zone1.setTtl(time::seconds(4000));
@@ -41,11 +40,11 @@
BOOST_CHECK_EQUAL(zone1.getName(), zoneName);
BOOST_CHECK_EQUAL(zone1.getTtl(), time::seconds(4000));
- Zone zone2(zoneName);
+ ndns::Zone zone2(zoneName);
BOOST_CHECK_EQUAL(zone1, zone2);
BOOST_CHECK_EQUAL(zone2.getName(), zone1.getName());
- BOOST_CHECK_NE(zone1, Zone("/net/ndnsim2"));
+ BOOST_CHECK_NE(zone1, ndns::Zone("/net/ndnsim2"));
}
BOOST_AUTO_TEST_SUITE_END()