X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FAnnotationRouter.test.cc;h=651d70ee66728f65493aa3fed9b3ce39700cf72d;hb=93d9568d448749dc187e7622b733a4a3caa319df;hp=9919d22c37555a1f9a8326919705d6b923125a6c;hpb=66101f618adf223cf360dd891f82f6eae37930cb;p=senf.git diff --git a/senf/PPI/AnnotationRouter.test.cc b/senf/PPI/AnnotationRouter.test.cc index 9919d22..651d70e 100644 --- a/senf/PPI/AnnotationRouter.test.cc +++ b/senf/PPI/AnnotationRouter.test.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -34,7 +34,7 @@ #include #define prefix_ -///////////////////////////////cc.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace ppi = senf::ppi; namespace connector = ppi::connector; namespace module = ppi::module; @@ -60,19 +60,19 @@ namespace { }; } -BOOST_AUTO_UNIT_TEST(annotationRouter) +SENF_AUTO_UNIT_TEST(annotationRouter) { debug::ActiveSource source; debug::PassiveSink sink1; debug::PassiveSink sink2; AnnotationRouter router; - + ppi::connect(source, router); ppi::connect(router, 1, sink1); ppi::connect(router, 2, sink2); - - BOOST_CHECK_THROW( connect(router, 2, sink2), + + BOOST_CHECK_THROW( connect(router, 2, sink2), module::AnnotationRouter::DuplicateKeyException); ppi::init(); @@ -98,12 +98,12 @@ BOOST_AUTO_UNIT_TEST(annotationRouter) senf::ppi::connect(router, 1, sink1); senf::ppi::init(); source.submit(p1); - + BOOST_CHECK_EQUAL( sink1.size(), 2u ); BOOST_CHECK_EQUAL( sink2.size(), 1u ); } -///////////////////////////////cc.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_