blob: eafe3cc37fe8bb2626d05f5aabb1e679d562a98b [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/map.hpp"
7#include <boost/test/unit_test.hpp>
8
9namespace nlsr {
10
11namespace test {
12
13BOOST_AUTO_TEST_SUITE(TestMapEntry)
14
15BOOST_AUTO_TEST_CASE(MapEntryConstructorAndGetters)
16{
17 std::string rtr = "r0";
18
19 MapEntry me1(rtr, 1);
20
21 BOOST_CHECK_EQUAL(me1.getRouter(), "r0");
22
23 BOOST_CHECK_EQUAL(me1.getMappingNumber(), 1);
24}
25
26BOOST_AUTO_TEST_SUITE_END()
27
28} //namespace test
29} //namespace nlsr