X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FAnnotationRouter.test.cc;h=778786457e11fc561822f1fbdbbdfdb70e32790b;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=8084a7ab187e0367e771d1052061cf87006b5a4a;hpb=2a7f04c6e922deb5beedc587133af5d836d5a8a9;p=senf.git diff --git a/PPI/AnnotationRouter.test.cc b/PPI/AnnotationRouter.test.cc index 8084a7a..7787864 100644 --- a/PPI/AnnotationRouter.test.cc +++ b/PPI/AnnotationRouter.test.cc @@ -21,7 +21,7 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief AnnotationRouter.test unit tests */ + \brief AnnotationRouter unit tests */ //#include "AnnotationRouter.test.hh" //#include "AnnotationRouter.test.ih" @@ -41,6 +41,7 @@ namespace { int value; bool operator<(IntAnnotation const & other) const { return value < other.value; } bool operator==(IntAnnotation const & other) const { return value == other.value; } + IntAnnotation() {} IntAnnotation(int v) : value(v) {} IntAnnotation & operator=(int v) { value=v; return *this; } operator int () const { return value; } @@ -61,6 +62,9 @@ BOOST_AUTO_UNIT_TEST(annotationRouter) senf::ppi::connect(source, router); senf::ppi::connect(router, sink1, 1); senf::ppi::connect(router, sink2, 2); + + BOOST_CHECK_THROW( senf::ppi::connect(router, sink2, 2), + senf::ppi::module::AnnotationRouter::DuplicateKeyException); senf::ppi::init();