Package org.serviceconnector.api.srv

Examples of org.serviceconnector.api.srv.SCPublishServerCallback


   */
  @Test (expected = SCServiceException.class)
  public void t115_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_PUB_SRV_TCP, ConnectionType.NETTY_TCP);
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 1, cbk);
    server.startListener();
  }
View Full Code Here


  @Test
  public void t198_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_PUB_SRV_TCP, ConnectionType.NETTY_TCP);
    server.startListener();
    SCPublishServer publishServer1 = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk1 = new PubSrvCallback(publishServer1);
    publishServer1.register(1, 1, cbk1);
    Assert.assertEquals("SessionServer is not registered", true, publishServer1.isRegistered());
   
    SCPublishServer publishServer2 = server.newPublishServer(TestConstants.sesServiceName2);
    SCPublishServerCallback cbk2 = new PubSrvCallback(publishServer2);
    publishServer2.register(1, 1, cbk2);
    Assert.assertEquals("SessionServer is not registered", true, publishServer2.isRegistered());
   
    publishServer1.deregister();
    publishServer2.deregister();
View Full Code Here

  @Test
  public void t199_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_TCP, TestConstants.PORT_PUB_SRV_TCP, ConnectionType.NETTY_TCP);
    server.startListener();
    SCPublishServer publishServer1 = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer1);
    publishServer1.register(1, 1, cbk);
    Assert.assertEquals("SessionServer is not registered", true, publishServer1.isRegistered());
   
    SCPublishServer publishServer2 = server.newPublishServer(TestConstants.sesServiceName2);
    publishServer2.register(1, 1, cbk);
View Full Code Here

  @Test (expected = SCServiceException.class)
  public void t201_register() throws Exception {
    server = new SCServer(TestConstants.HOST, 9002, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 1, cbk);
  }
View Full Code Here

  @Test (expected = SCServiceException.class)
  public void t203_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer("");
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 1, cbk);
  }
View Full Code Here

  @Test (expected = SCServiceException.class)
  public void t204_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(" ");
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 1, cbk);
  }
View Full Code Here

  @Test (expected = SCServiceException.class)
  public void t205_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer("gaga");
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 1, cbk);
  }
View Full Code Here

  @Test (expected = SCMPValidatorException.class)
  public void t206_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = null;
    publishServer.register(1, 1, cbk);
  }
View Full Code Here

  @Test
  public void t207_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(1, 1, cbk);
    Assert.assertEquals("SessionServer is not registered", true, publishServer.isRegistered());
  }
View Full Code Here

  @Test
  public void t208_register() throws Exception {
    server = new SCServer(TestConstants.HOST, TestConstants.PORT_SC0_HTTP, TestConstants.PORT_PUB_SRV_HTTP, ConnectionType.NETTY_HTTP);
    server.startListener();
    publishServer = server.newPublishServer(TestConstants.pubServiceName1);
    SCPublishServerCallback cbk = new PubSrvCallback(publishServer);
    publishServer.register(10, 10, cbk);
    Assert.assertEquals("SessionServer is not registered", true, publishServer.isRegistered());
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.api.srv.SCPublishServerCallback

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.