Package com.sun.sgs.test.util

Examples of com.sun.sgs.test.util.TestAbstractKernelRunnable


     *
     * @throws Exception
     */
    @Test
    public void testConsecutiveClears() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = makeList();

    list.clear();
    list.clear();
View Full Code Here


     *
     * @throws Exception
     */
    @Test
    public void testMultipleClears() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = makeList();

    list.add("A");
    list.add("B");
View Full Code Here

     *
     * @throws Exception
     */
    @Test
    public void testScalableAppendByVerifyingSize() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = new ScalableList<String>(3, 3);
    list.add("A");
    list.add("B");
    list.add("C");
View Full Code Here

     *
     * @throws Exception
     */
    @Test
    public void testScalablePrependByVerifyingSize() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = new ScalableList<String>(3, 3);
    list.add("L");
    list.add(0, "A");
    list.add(1, "K");
View Full Code Here

     *
     * @throws Exception
     */
    @Test
    public void testScalableAppendByVerifyingValues() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = makeList();

    assertEquals("A", list.get(0));
    assertEquals("D", list.get(3));
View Full Code Here

     *
     * @throws Exception
     */
    @Test
    public void testScalableInsertByVerifyingValues() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = new ScalableList<String>(3, 3);
    list.add("A");
    list.add("L");

View Full Code Here

     *
     * @throws Exception
     */
    @Test
    public void testScalablePrependByVerifyingValues() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = new ScalableList<String>(3, 3);
    list.add("L");
    list.add(0, "K");
    list.add(0, "J");
View Full Code Here

     *
     * @throws Exception
     */
    @Test
    public void testScalableAddAll() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = new ScalableList<String>(3, 3);
    list.add("A");
    list.add("L");

View Full Code Here

     *
     * @throws Exception
     */
    @Test
    public void testScalableRemoveByVerifyingSize() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = makeList();
    list.remove(5);
    assertEquals("G", list.get(5));
    list.remove(9);
View Full Code Here

     *
     * @throws Exception
     */
    @Test
    public void testScalableRemoveByVerifyingValues() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = new ScalableList<String>(3, 3);
    list.add(0, "L");
    list.add(0, "K");
    list.add(0, "J");
View Full Code Here

TOP

Related Classes of com.sun.sgs.test.util.TestAbstractKernelRunnable

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.