Package com.sun.sgs.impl.service.channel

Examples of com.sun.sgs.impl.service.channel.ChannelServiceImpl$ChannelServiceNodeListener


    // -- Test constructor --
    @Test
    public void testConstructorNullProperties() throws Exception {
  try {
      new ChannelServiceImpl(null, serverNode.getSystemRegistry(),
           serverNode.getProxy());
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
View Full Code Here


    }

    @Test
    public void testConstructorNullComponentRegistry() throws Exception {
  try {
      new ChannelServiceImpl(serviceProps, null, serverNode.getProxy());
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
    }
View Full Code Here

    }

    @Test
    public void testConstructorNullTransactionProxy() throws Exception {
  try {
      new ChannelServiceImpl(serviceProps, serverNode.getSystemRegistry(),
           null);
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
View Full Code Here

    }

    @Test
    public void testConstructorNoAppName() throws Exception {
  try {
      new ChannelServiceImpl(
    new Properties(), serverNode.getSystemRegistry(),
    serverNode.getProxy());
      fail("Expected IllegalArgumentException");
  } catch (IllegalArgumentException e) {
      System.err.println(e);
View Full Code Here

    public void run() {
        Version version = new Version(MAJOR_VERSION, MINOR_VERSION);
        dataService.setServiceBinding(VERSION_KEY, version);
    }}, taskOwner);

  ChannelServiceImpl newChannelService = null;
  try {
      newChannelService =
    new ChannelServiceImpl(serviceProps,
               serverNode.getSystemRegistry(),
               serverNode.getProxy());
  } finally {
      if (newChannelService != null) {
    newChannelService.shutdown();
      }
  }
    }
View Full Code Here

      new Version(MAJOR_VERSION + 1, MINOR_VERSION);
        dataService.setServiceBinding(VERSION_KEY, version);
    }}, taskOwner);

  try {
      new ChannelServiceImpl(serviceProps, serverNode.getSystemRegistry(),
           serverNode.getProxy());
      fail("Expected IllegalStateException");
  } catch (IllegalStateException e) {
      System.err.println(e);
  }
View Full Code Here

      new Version(MAJOR_VERSION, MINOR_VERSION + 1);
        dataService.setServiceBinding(VERSION_KEY, version);
    }}, taskOwner);

  try {
      new ChannelServiceImpl(serviceProps, serverNode.getSystemRegistry(),
           serverNode.getProxy());
      fail("Expected IllegalStateException");
  } catch (IllegalStateException e) {
      System.err.println(e);
  }
View Full Code Here

    // -- Test constructor --
    @Test
    public void testConstructorNullProperties() throws Exception {
  try {
      new ChannelServiceImpl(null, serverNode.getSystemRegistry(),
           serverNode.getProxy());
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
View Full Code Here

    }

    @Test
    public void testConstructorNullComponentRegistry() throws Exception {
  try {
      new ChannelServiceImpl(serviceProps, null, serverNode.getProxy());
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
    }
View Full Code Here

    }

    @Test
    public void testConstructorNullTransactionProxy() throws Exception {
  try {
      new ChannelServiceImpl(serviceProps, serverNode.getSystemRegistry(),
           null);
      fail("Expected NullPointerException");
  } catch (NullPointerException e) {
      System.err.println(e);
  }
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.service.channel.ChannelServiceImpl$ChannelServiceNodeListener

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.