// 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"
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; }
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<IntAnnotation>::DuplicateKeyException);
senf::ppi::init();