Ignore:
Timestamp:
Dec 13, 2011, 12:02:21 PM (14 years ago)
Author:
Frederik Heber <heber@…>
Children:
3324cf
Parents:
d85532
git-author:
Frederik Heber <heber@…> (12/02/11 13:13:44)
git-committer:
Frederik Heber <heber@…> (12/13/11 12:02:21)
Message:

Relay can now also relay notifications.

  • NOTE: We do not yet notify the Observables, whose update() we combine, when the Relay is destroyed. They have to signOff before by themselves (or by some other means, e.g. be destroyed before.).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Patterns/Observer/unittests/ObserverUnitTest.hpp

    rd85532 rb760ac5  
    2828class NotificationObservable;
    2929class RelayCountObserver;
     30class RelayNotification;
     31class RelayNotificationObserver;
    3032
    3133class ObserverTest :  public CppUnit::TestFixture
     
    4042  CPPUNIT_TEST ( iteratorTest );
    4143  CPPUNIT_TEST ( relayTest );
     44  CPPUNIT_TEST ( relayNotificationTest );
    4245  CPPUNIT_TEST ( CircleDetectionTest );
    4346  CPPUNIT_TEST_SUITE_END();
     
    5558  void iteratorTest();
    5659  void relayTest();
     60  void relayNotificationTest();
    5761  void CircleDetectionTest();
    5862
     
    7680  RelayTest *RelayObservable;
    7781  RelayCountObserver *RelayObserver;
     82  RelayNotification *RelayNotifier;
     83  RelayNotificationObserver *RelayNotified;
    7884};
    7985
Note: See TracChangeset for help on using the changeset viewer.