Package org.bladerunnerjs.model.events

Examples of org.bladerunnerjs.model.events.NodeReadyEvent


  @Test
  public void newAppsAreOnlyHostedOnAppDeployedEvent() throws Exception
  {
    given(appServer).started();
    when(app1).populate()
      .and(brjs).eventFires(new NodeReadyEvent(), app1);
    then(appServer).requestCannotBeMadeFor("/app1/default-aspect/index.html");
  }
View Full Code Here


 
  @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 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

  }
 
  @Override
  public void ready()
  {
    notifyObservers(new NodeReadyEvent(), this);
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.model.events.NodeReadyEvent

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.