Package com.sun.sgs.test.util

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


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


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

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

      }
  }, taskOwner);
    }

    public void testIteratorHasNext() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = new ScalableList<String>(6, 6);
    assertTrue(list.add("A"));
    assertTrue(list.add("B"));
    assertTrue(list.add("C"));
View Full Code Here

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

     *
     * @throws Exception
     */
    @Test
    public void testListIteratorAdd() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = new ScalableList<String>(6, 6);
    List<String> shadow = new ArrayList<String>();
    assertTrue(list.add("A"));
    assertTrue(list.add("B"));
View Full Code Here

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

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

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

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

    list.clear();
    assertTrue(list.isEmpty());
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.