Package org.bladerunnerjs.plugin

Examples of org.bladerunnerjs.plugin.Event


 
  @Test
  public void notifiesObserversListeningForEventsWhenNodeDeployedEventEmitted()
  {
    Class<? extends Event> listenForEvent = Event.class;
    Event theEvent = new NodeReadyEvent();

    ObserverList observers = new ObserverList();
    Node node = mock(Node.class);       
    EventObserver eventObserver = mock(EventObserver.class);
    observers.add(listenForEvent, eventObserver);
View Full Code Here


 
  @Test
  public void notifiesObserversListeningForAppDeployedEventsWhenAppDeployedEventEmitted()
  {
    Class<? extends Event> listenForEvent = AppDeployedEvent.class;
    Event theEvent = new AppDeployedEvent();

    ObserverList observers = new ObserverList();
    Node node = mock(Node.class);       
    EventObserver eventObserver = mock(EventObserver.class);
    observers.add(listenForEvent, eventObserver);
View Full Code Here

 
  @Test
  public void doesntNotifyObserversListeningforNodeDeployedWhenNodeReadyEmitted()
  {
    Class<? extends Event> listenForEvent = AppDeployedEvent.class;
    Event theEvent = new NodeReadyEvent();
   
    ObserverList observers = new ObserverList();
    Node node = mock(Node.class);       
    EventObserver eventObserver = mock(EventObserver.class);
    observers.add(listenForEvent, eventObserver);
View Full Code Here

 
  @Test
  public void doesntNotifyObserversListeningforNodeDeployedWhenEventEmitted()
  {
    Class<? extends Event> listenForEvent = AppDeployedEvent.class;
    Event theEvent = new Event(){};
   
    ObserverList observers = new ObserverList();
    Node node = mock(Node.class);       
    EventObserver eventObserver = mock(EventObserver.class);
    observers.add(listenForEvent, eventObserver);
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.plugin.Event

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.