Package com.sun.sgs.impl.util.AbstractService

Examples of com.sun.sgs.impl.util.AbstractService.Version


    }

    @Test public void testConstructedVersion() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
    public void run() {
        Version version = (Version)
      dataService.getServiceBinding(VERSION_KEY);
        if (version.getMajorVersion() != MAJOR_VERSION ||
      version.getMinorVersion() != MINOR_VERSION)
        {
      fail("Expected service version (major=" +
           MAJOR_VERSION + ", minor=" + MINOR_VERSION +
           "), got:" + version);
        }
View Full Code Here


    }
   
    @Test public void testConstructorWithCurrentVersion() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
    public void run() {
        Version version = new Version(MAJOR_VERSION, MINOR_VERSION);
        dataService.setServiceBinding(VERSION_KEY, version);
    }}, taskOwner);

  WatchdogServiceImpl watchdog =
      new WatchdogServiceImpl(
View Full Code Here

    public void testConstructorWithMajorVersionMismatch()
  throws Exception
    {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
    public void run() {
        Version version =
      new Version(MAJOR_VERSION + 1, MINOR_VERSION);
        dataService.setServiceBinding(VERSION_KEY, version);
    }}, taskOwner);

  new WatchdogServiceImpl(serviceProps, systemRegistry, txnProxy,
        dummyShutdownCtrl)
View Full Code Here

    public void testConstructorWithMinorVersionMismatch()
  throws Exception
    {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
    public void run() {
        Version version =
      new Version(MAJOR_VERSION, MINOR_VERSION + 1);
        dataService.setServiceBinding(VERSION_KEY, version);
    }}, taskOwner);

  new WatchdogServiceImpl(serviceProps, systemRegistry, txnProxy,
        dummyShutdownCtrl)
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.util.AbstractService.Version

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.