Package org.eclipse.ecf.server.generic

Examples of org.eclipse.ecf.server.generic.IGenericServerContainerGroup


  protected void removeContainerGroup() throws Exception {
    gscgFactory.removeContainerGroup(hostname, port);
  }
 
  public void testCreateContainerGroup() throws Exception {
    IGenericServerContainerGroup containerGroup = createContainerGroup(null);
    assertNotNull(containerGroup);
    URI groupEndpoint = containerGroup.getGroupEndpoint();
    assertNotNull(groupEndpoint);
    assertTrue(groupEndpoint.getHost().equals(hostname));
    assertTrue(groupEndpoint.getPort()==port);
    removeContainerGroup();
  }
View Full Code Here


    assertTrue(groupEndpoint.getPort()==port);
    removeContainerGroup();
  }
 
  public void testCreateContainerGroupListen() throws Exception {
    IGenericServerContainerGroup containerGroup = createContainerGroup(null);
    assertNotNull(containerGroup);
    URI groupEndpoint = containerGroup.getGroupEndpoint();
    assertNotNull(groupEndpoint);
    assertTrue(groupEndpoint.getHost().equals(hostname));
    assertTrue(groupEndpoint.getPort()==port);
    assertTrue(!containerGroup.isListening());
    containerGroup.startListening();
    assertTrue(containerGroup.isListening());
    containerGroup.stopListening();
    assertTrue(!containerGroup.isListening());
    removeContainerGroup();
  }
View Full Code Here

    removeContainerGroup();
  }
 

  public void testCreateContainerGroupWithBindAddress() throws Exception {
    IGenericServerContainerGroup containerGroup = createContainerGroup(this.allAddress);
    assertNotNull(containerGroup);
    URI groupEndpoint = containerGroup.getGroupEndpoint();
    assertNotNull(groupEndpoint);
    assertTrue(groupEndpoint.getHost().equals(hostname));
    assertTrue(groupEndpoint.getPort()==port);
    removeContainerGroup();
  }
View Full Code Here

    assertTrue(groupEndpoint.getPort()==port);
    removeContainerGroup();
  }
 
  public void testCreateContainerGroupWithBindAddressListen() throws Exception {
    IGenericServerContainerGroup containerGroup = createContainerGroup(this.allAddress);
    assertNotNull(containerGroup);
    URI groupEndpoint = containerGroup.getGroupEndpoint();
    assertNotNull(groupEndpoint);
    assertTrue(groupEndpoint.getHost().equals(hostname));
    assertTrue(groupEndpoint.getPort()==port);
    assertTrue(!containerGroup.isListening());
    containerGroup.startListening();
    assertTrue(containerGroup.isListening());
    containerGroup.stopListening();
    assertTrue(!containerGroup.isListening());
    removeContainerGroup();
  }
View Full Code Here

    removeContainerGroup();
  }
 

  public void testGetContainerGroup() throws Exception {
    IGenericServerContainerGroup gscg = gscgFactory.getContainerGroup(hostname, port);
    assertNull(gscg);
    createContainerGroup();
    gscg = gscgFactory.getContainerGroup(hostname, port);
    assertNotNull(gscg);
    URI groupEndpoint = gscg.getGroupEndpoint();
    assertNotNull(groupEndpoint);
    assertTrue(groupEndpoint.getHost().equals(hostname));
    assertTrue(groupEndpoint.getPort()==port);
    removeContainerGroup();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.server.generic.IGenericServerContainerGroup

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.