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/map.hpp" |
| 7 | #include <boost/test/unit_test.hpp> |
| 8 | |
| 9 | namespace nlsr { |
| 10 | |
| 11 | namespace test { |
| 12 | |
| 13 | BOOST_AUTO_TEST_SUITE(TestMapEntry) |
| 14 | |
| 15 | BOOST_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 | |
| 26 | BOOST_AUTO_TEST_SUITE_END() |
| 27 | |
| 28 | } //namespace test |
| 29 | } //namespace nlsr |