blob: 1a908a34cc86ef6e2d80163aa79c2e45cf9042dc [file] [log] [blame]
Ashlesh Gawandeeb582eb2014-05-01 14:25:20 -05001/**
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
10namespace nlsr {
11
12namespace test {
13
14BOOST_AUTO_TEST_SUITE(TestFibEntry)
15
16BOOST_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
25BOOST_AUTO_TEST_SUITE_END()
26
27} //namespace test
28} //namespace nlsr