Package com.sun.sgs.app.util

Examples of com.sun.sgs.app.util.ScalableHashSet


    @Test public void testConstructorOneArg() throws Exception {
  txnScheduler.runTask(
            new TestTask(new TestAbstractKernelRunnable() {
                public void run() {
        try {
      new ScalableHashSet(-1);
      fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException e) {}
        try {
      new ScalableHashSet(0);
      fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException e) {}
        new ScalableHashSet(1);
        new ScalableHashSet(8);
    }
      }), taskOwner);
    }
View Full Code Here


  txnScheduler.runTask(
      new TestTask(new TestAbstractKernelRunnable() {
    public void run() {

        ScalableHashSet deserialized =
      (ScalableHashSet)(dataService.getBinding(SET_NAME));
       
        assertTrue(deserialized.remove(1));
        assertFalse(deserialized.contains(1));
        assertFalse(deserialized.remove(1));
        assertTrue(deserialized.remove(null));
        assertFalse(deserialized.contains(null));
        assertFalse(deserialized.remove(null));
    }
      }), taskOwner);
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.app.util.ScalableHashSet

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.