zone: add TTL
Change-Id: I20b2b9647081e9b235414351ff03747601fd1ff3
diff --git a/tests/unit/zone.cpp b/tests/unit/zone.cpp
index 3acc4ec..0a26e76 100644
--- a/tests/unit/zone.cpp
+++ b/tests/unit/zone.cpp
@@ -35,15 +35,17 @@
Zone zone1;
zone1.setName(zoneName);
zone1.setId(2);
+ zone1.setTtl(time::seconds(4000));
- Zone zone2(zoneName);
- Zone zone3("/net/ndnsim");
-
- BOOST_CHECK_EQUAL(zone1, zone2);
- BOOST_CHECK_EQUAL(zone3, zone2);
- BOOST_CHECK_EQUAL(zone2.getName(), zone3.getName());
BOOST_CHECK_EQUAL(zone1.getId(), 2);
BOOST_CHECK_EQUAL(zone1.getName(), zoneName);
+ BOOST_CHECK_EQUAL(zone1.getTtl(), time::seconds(4000));
+
+ Zone zone2(zoneName);
+ BOOST_CHECK_EQUAL(zone1, zone2);
+ BOOST_CHECK_EQUAL(zone2.getName(), zone1.getName());
+
+ BOOST_CHECK_NE(zone1, Zone("/net/ndnsim2"));
}
BOOST_AUTO_TEST_SUITE_END()