Package de.bamberg.ha.api.remote

Examples of de.bamberg.ha.api.remote.Connector


  private static final String HELLO_WORLD = "Hello World!";


  @Test
  public void testAllListenerCalled() throws Exception {
    Connector connector=createConnector();
    JUnitMessageListener l1=new JUnitMessageListener();
    JUnitMessageListener l2=new JUnitMessageListener();
    connector.addMessageListener(l1);
    connector.addMessageListener(l2);
    connector.messageReceived(new MessageEvent(HELLO_WORLD));
    assertEquals(HELLO_WORLD,l1.getMessage());
    assertEquals(HELLO_WORLD,l2.getMessage());
   
  }
View Full Code Here


   
  }
 
  @Test
  public void testNoListenerRegistered() throws Exception {
    Connector connector=createConnector();
    connector.messageReceived(new MessageEvent(HELLO_WORLD));
   
  }
View Full Code Here

TOP

Related Classes of de.bamberg.ha.api.remote.Connector

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.