Package com.sun.sgs.test.util

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


     *
     * @throws Exception
     */
    @Test
    public void testScalableIndexOf() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {

    ScalableList<String> list = makeList();
    assertEquals(2, list.indexOf("C"));
    assertEquals(8, list.indexOf("I"));
View Full Code Here


     *
     * @throws Exception
     */
    @Test
    public void testScalableLastIndexOf() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {

    ScalableList<String> list = makeList();
    list.add("A");
    assertEquals(12, list.lastIndexOf("A"));
View Full Code Here

     *
     * @throws Exception
     */
    @Test
    public void testScalableSet() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = makeList();
    assertEquals("C", list.set(2, "Z"));
    assertEquals("Z", list.get(2));
    assertEquals("I", list.set(8, "ZZ"));
View Full Code Here

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

    assertEquals(true, iter.hasNext());
View Full Code Here

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

    assertEquals("A", list.get(0));
    AppContext.getDataManager().removeObject(list);
View Full Code Here

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

    assertEquals("L", list.get(11));
    AppContext.getDataManager().removeObject(list);
View Full Code Here

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

    Collection<String> c = new ArrayList<String>();
    c.add("B");
View Full Code Here

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

    Collection<String> c = new ArrayList<String>();
    c.add("A");
View Full Code Here

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

    List<String> newList = list.subList(3, 7);

View Full Code Here

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

    Object[] array = list.toArray();

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.