Ashlesh Gawande | eb582eb | 2014-05-01 14:25:20 -0500 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (C) 2014 Regents of the University of Memphis. |
| 3 | * See COPYING for copyright and distribution information. |
| 4 | */ |
| 5 | |
| 6 | #include "route/fib-entry.hpp" |
| 7 | #include "route/nexthop-list.hpp" |
| 8 | #include <boost/test/unit_test.hpp> |
| 9 | |
| 10 | namespace nlsr { |
| 11 | |
| 12 | namespace test { |
| 13 | |
| 14 | BOOST_AUTO_TEST_SUITE(TestFibEntry) |
| 15 | |
| 16 | BOOST_AUTO_TEST_CASE(FibEntryConstructorAndGetters) |
| 17 | { |
| 18 | FibEntry fe1("next1"); |
| 19 | |
| 20 | BOOST_CHECK_EQUAL(fe1.getName(), "next1"); |
| 21 | BOOST_CHECK_EQUAL(fe1.getTimeToRefresh(), 0); //Default Time |
| 22 | BOOST_CHECK_EQUAL(fe1.getSeqNo(), 0); //Default Seq No. |
| 23 | } |
| 24 | |
| 25 | BOOST_AUTO_TEST_SUITE_END() |
| 26 | |
| 27 | } //namespace test |
| 28 | } //namespace nlsr |