Package com.sun.sgs.test.util

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


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

    Object[] container = new Object[77];
    Object[] array = list.toArray(container);
View Full Code Here


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

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

     *
     * @throws Exception
     */
    @Test
    public void testScalableRandomOperations() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() throws Exception {
    ScalableList<String> list = new ScalableList<String>(3, 3);
    ArrayList<String> shadow = new ArrayList<String>();

    Random random = new Random(randomSeed);
View Full Code Here

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

    assertEquals(0, list.subList(2, 2).size());
    AppContext.getDataManager().removeObject(list);
View Full Code Here

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

    try {
View Full Code Here

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

View Full Code Here

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

View Full Code Here

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

View Full Code Here

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

View Full Code Here

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

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.