abstract Face class
refs #1153
Change-Id: I0b0dd71300d9b2d747a48c72fa8850c9afb75448
diff --git a/tests/face/face.cpp b/tests/face/face.cpp
index 93a78ec..b453110 100644
--- a/tests/face/face.cpp
+++ b/tests/face/face.cpp
@@ -12,7 +12,31 @@
BOOST_AUTO_TEST_SUITE(FaceFace)
-// no unit test here: this ensures face.hpp can compile on its own
+class FaceTestFace : public Face
+{
+public:
+ FaceTestFace()
+ : Face(1)
+ {
+ }
+
+ virtual void
+ sendInterest(const Interest &interest)
+ {
+ }
+
+ virtual void
+ sendData(const Data &data)
+ {
+ }
+};
+
+BOOST_AUTO_TEST_CASE(Description)
+{
+ FaceTestFace face;
+ face.setDescription("3pFsKrvWr");
+ BOOST_CHECK_EQUAL(face.getDescription(), "3pFsKrvWr");
+}
BOOST_AUTO_TEST_SUITE_END()